开发者

How to create a custom PopUp Menu

开发者 https://www.devze.com 2023-03-11 07:36 出处:网络
I would like to create a custom PopUp menu in Android like the one in the attached screenshot. Any pointers would be appreciated.

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" , y开发者_运维技巧ou see a PopUp menu just below the button.

How to create a custom PopUp Menu

Thaknks.


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).


Sana,

You will probably want to look into creating a custom Dialog for your application: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

0

精彩评论

暂无评论...
验证码 换一张
取 消