开发者

Android: How to create popup with choices

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜