java - 如何开发在首次启动时出现的演练对话框?

标签 java android android-layout android-activity android-dialog

我想开发一个由 3 个步骤组成的对话框,以在用户首次启动该应用时对其进行引导。

下图是我想要实现的示例:

enter image description here

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/

相关文章:

android - 在android中的 Activity 之间切换

android - Robolectric+Eclipse 找不到资源?

android - 调试到 Android 源代码

Android Activity 工具栏向上按钮不显示

android - 如何将 View 粘贴在屏幕底部以便上面的部分可以移动?

java - JSP中如何处理多个客户端?

java - Runnable 和 ExecutorService 的奇怪行为

java - 使用 Mule ESB 找不到与代理名称匹配的主题备用 DNS 名称

Android:嵌套线性布局错误

java - 更改 JTextField 格式