简体   繁体   English

全屏选择列表,例如选择铃声或通知声音时

[英]Full Screen Selection List, such as when selecting a ringtone or notification sound

I want to display a list of options in a modal popup just like some apps let you click a button and then present you with a list of possible options. 我想在模式弹出窗口中显示选项列表,就像某些应用程序让您单击一个按钮,然后为您显示可能的选项列表一样。 This list takes up the entire screen, such as when selecting a ringtone or notification sound. 该列表占据了整个屏幕,例如选择铃声或通知声音时。 How do I do this? 我该怎么做呢?

A modal popup would reflect the exact same thing as a AlertDialog.Builder . 模态弹出窗口将反映与AlertDialog.Builder完全相同的内容。 This dialog is basically a popup where the user makes a decision and off it goes. 该对话框基本上是一个弹出窗口,用户可以在其中做出决定,然后退出。 You can have a click listener to do something when a button on the dialog is clicked. 单击对话框上的按钮时,可以使单击侦听器执行某些操作。

This should help you find what kind you want: 这应该可以帮助您找到所需的种类:

http://developer.android.com/guide/topics/ui/dialogs.html http://developer.android.com/guide/topics/ui/dialogs.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM