开发者

How to create android Dialog with 2 SingleChoiceItems?

开发者 https://www.devze.com 2023-02-19 19:20 出处:网络
I.e. user should be able to choose values from 2 lists (4 options in each). Ideally it should 开发者_运维知识库look like drop down lists.So you need two Spinners in a Dialog. OK, wrap spinners with a

I.e. user should be able to choose values from 2 lists (4 options in each). Ideally it should 开发者_运维知识库look like drop down lists.


So you need two Spinners in a Dialog. OK, wrap spinners with a LinearLayout and use Dialog.setContentView(View) to embed the LinearLayout into the dialog.

The tutorial on this.

0

精彩评论

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

关注公众号