android - Adding NumberPicker to AlertDialog -


short version:

i want display horizontal numberpicker on right hand side of each item of "single-choice-items" alertdialog.

long version:

i using alertdialog of "single-choice-items" type. works fine. displays list of strings want.

now, want use numberpicker (with numbers 1 5) "single-choice-items" alertdialog. want numberpicker displayed horizontally, on right-hand-side of each of strings of alertdialog.

i have no idea how modify "usual" alertdialog achieve this. please help!

you can build own layout alertdialog inflate layout before call show().

alertdialog.builder builder = new alertdialog.builder(getcontext()); alertdialog dialog = builder.create(); dialog.setview(getlayoutinflater().inflate(r.layout.my_own_alert_with_picker,null)); dialog.show(); 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -