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
Post a Comment