我想开发一个由 3 个步骤组成的对话框,以在用户首次启动该应用时对其进行引导。
下图是我想要实现的示例:
1- 我想知道如何在右上角添加一个关闭对话框的标记?
2- 如何实现屏幕底部指示当前步骤的小圆圈?它们能否以编程方式创建?
3-为了确定,我决定使用 ViewFlipper 在对话步骤之间导航。这是正确的方法吗?
提前致谢。
最佳答案
I would like to know how to add a mark to close the dialog at the upper right corner?
不要那样做。这看起来像是来自 iPhone 应用程序的直接端口。使用 native android 对话框容器/按钮。
How can I implement the small dots at the bottom of the screen that indicates the current step?
你试过什么?根据工作流的其余部分,有上百万种方法可以做到这一点。
Only to be sure, I decided to navigate between the dialog steps using a ViewFlipper. Is this the right approach?
也许吧。这取决于你展示的是什么。如果您只显示单个图像或一些简单的东西,那么这可能是最好的方法。我会为不同的步骤创建不同的对话 fragment (您正在使用 fragment ,对吗?)。这样您就可以在工作流程中移动时自动将它们推送到后台堆栈。
关于java - 如何开发在首次启动时出现的演练对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11439378/