如何为Android应用程序创建帮助视图?

时间:2016-02-07 08:36:25

标签: android android-view

如何为Android应用程序创建以下帮助视图。此图片来自Zapya应用程序,它在首次打开后出现。

enter image description here

1 个答案:

答案 0 :(得分:1)

您可以尝试使用TourGuide(https://github.com/worker8/TourGuide)。

截图(https://raw.githubusercontent.com/worker8/all_my_media_files/695d9a2/2015-07-01_screenshot.png

或MaterialIntroView(https://github.com/iammert/MaterialIntroView)。

截图(https://raw.githubusercontent.com/iammert/MaterialIntroView/master/art/materialintroviewgif.gif

或者你可以做到这一点。

将布局更改为:

<FrameLayout>
    <your rootView/>
    <your guideView/>
</FrameLayout>

当人们进入此页面时,会显示你的guideView。当人们点击下一个时,你会隐藏guideView。透明区域可以通过在rootView中添加相同的视图或更改guideView的ondraw来实现。