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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -