如何创建自定义弹出菜单 [英] How to create a custom PopUp Menu
本文介绍了如何创建自定义弹出菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Android中创建自定义弹出菜单像在所附的截屏。任何指针将AP preciated。
I would like to create a custom PopUp menu in Android like the one in the attached screenshot. Any pointers would be appreciated.
按钮选择名称的一下,你看到的只是下面的按钮的弹出式菜单。
On click of the button "Choose Name" , you see a PopUp menu just below the button.
Thaknks。
Thaknks.
推荐答案
您应该看一看的建筑自定义对话框的。在Android中,一个对话框
通常在弹出窗口的形式。你也可以用活动做到这一点,并应用对话的主题为它(在此链接提到)。
You should take a look at building custom dialogs. In Android, a Dialog
is typically in the form of a popup window. You can also do this with an Activity and apply the Dialog theme to it (mentioned in this link).
这篇关于如何创建自定义弹出菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文