Android: 我如何在我的应用程序中实现像 Go Launcher 这样的第一次教程?

启动器有一个不错的第一次教程。它非常类似于股票 ICS 首次运行。我想学习如何使类似的教程显示在我的应用程序的第一次启动。如何在我的 Android 应用程序中实现这个透明视图(它与屏幕对象交互) ?

First Image Second Image

65368 次浏览

You can either use a FrameLayout or RelativeLayout as root of your Activity/Fragment, and put your "first time" View upon content with a (almost) transparent background, or use another Activity/Fragment themed with a transluscent window. (like this)

I'd rather use an Activity/Fragment, but this is up to you!

I was trying to do something similar using a transparent activity with a viewpager inside it. I wanted static 'tutorial' images that users could swipe through.

One of the answers to my question mentioned an interesting library (called ShowcaseView). It seems like it may be a good fit for your requirements as well.

https://github.com/Espiandev/ShowcaseView

I wrote little library That contains a simple component for making ​​a app tour. It`s very restricted to my case but maybe could be your case . Single LessonCardView Showed onstartactivity for the first time or on button click Any criticism ,help or advice will be appreciated. thanks https://github.com/dnocode/DnoLib

You can implement a first-time user guide with the Spotlight library by TakuSemba.

It is similar to the one shared above and it is still well-maintained (as of 2021).

https://github.com/TakuSemba/Spotlight