How to implement first launch tutorial like Android Lollipop apps: Like Sheets, Slides app?

前端 未结 7 1400
[愿得一人]
[愿得一人] 2020-12-04 05:42

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\", \"Sli

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 06:13

    If you do not want to use a library, it is pretty simple. I used to use a library before, but I started implementing a custom version. All you have to do is use a tabbed view and view pager. Then design all these pages in the tutorial as fragments. These fragments can have any buttons, in any position, and different styling as you like because you are implementing each fragment yourself. And it is not difficult. In the end, just use shared preferences, to check if it is the first run. If it is how the activity which has all the fragments. Else do not show that activity.

提交回复
热议问题