如何实现首次发射教程像棒棒糖的Andr​​oid应用程序:像床单,幻灯片应用程序? [英] How to implement first launch tutorial like Android Lollipop apps: Like Sheets, Slides app?

查看:979
本文介绍了如何实现首次发射教程像棒棒糖的Andr​​oid应用程序:像床单,幻灯片应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Nexus 5的Andr​​oid 5.0最终版本闪过我注意到它显示了在第一次发射教程的非常漂亮,干净,优雅的方式。如表,幻灯片等。

I have Android 5.0 final build flashed in my Nexus 5. I noticed it has very beautiful, clean and elegant way of showing tutorial at first launch. Apps like "Sheets", "Slides" etc.

我们如何实现,在我们的Andr​​oid大号兼容的应用程序?

How can we implement that in our Android L compatible apps?

另外,应用程序,变淡关闭第一个启动屏幕,然后显示教程。

Also the app fades off the first launch screen and then shows the tutorial.

抱歉巨大的影像,我找不到任何选项来挤他们。

Sorry for huge images, I couldn't find any option to squeeze them.

推荐答案

首先,没有秘密。插图的质量是关键,获得这个pretty的结果。所以,除非你是一个设计师自己,你必须找到一个优秀的设计师为他们。

First of all, there's no secret. The quality of the illustrations is the key to get this pretty result. So unless you're a designer yourself, you'll have to find a good designer for them.

Appart酒店的,我可以看到几种方式去接近这一点。

Appart from that, I can see several ways to get close to this.

  1. 首先,有对插图一个非常微妙的视差效果。您可以通过使用 此ParallaxTransformPage要点 实现它。我用它和它的作品pretty的好。

  1. First, there's a very subtle parallax effect on the illustrations. You can achieve it by using this ParallaxTransformPage gist. I use it and it works pretty well.

此外, 这里是让你顺利地改变屏幕的背景颜色一个lib 而切换页面。

Also, here's a lib that let you smoothly change the screen's background color while switching pages.

有关的启动画面淡出的动画,你可以做这样的事情:

For the splashscreen fade out animation, you can do something like this :

final ImageView launchScreen = (ImageView) context.findViewById(R.id.launch_screen_view);
new Handler().postDelayed(new Runnable()
{
    @Override
    public void run()
    {
        Animation animation = AnimationUtils.loadAnimation(context, android.R.anim.fade_out);
        animation.setAnimationListener(new Animation.AnimationListener()
        {
            // ...

            @Override
            public void onAnimationEnd(Animation animation)
            {
                launchScreen.setVisibility(View.GONE);
            }
        });
        launchScreen.startAnimation(animation);
    }
}, 2000);

  • linkas的回答,在使用了 ViewPagerIndicator 以及如何启动指南,仅在第一次用户启动应用程序。

  • Follow linkas's answer for the use of a ViewPagerIndicator and how to launch the tutorial only the first time user launches the app.

    这篇关于如何实现首次发射教程像棒棒糖的Andr​​oid应用程序:像床单,幻灯片应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆