开发者

Android: How to create popup with choices

开发者 https://www.devze.com 2022-12-17 19:26 出处:网络
I want to do something like this: user clicks on a button \"Choose color\", and a simple popup with e.g. 5 colors appears. I could do this with PopupWindow and inner ListView, but is there a simpler s

I want to do something like this: user clicks on a button "Choose color", and a simple popup with e.g. 5 colors appears. I could do this with PopupWindow and inner ListView, but is there a simpler solution, like a specific widget for this?

How it should look开发者_C百科 like:

Android: How to create popup with choices


Use AlertDialog.Builder and supply an Adapter via setAdapter() that generates your rows.

0

精彩评论

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