Android AlertDialog.Builder Custom title bar with Edit text -
here issue, want create custom alert dialog box 4 parts,
- title bar
- header part (most of time plan use edittext box searching purpose)
- list item(single click or multi click)
- footer part(cancel or ok buttons)
i try using separate layout, list view item not showing properly(shrinking). plan use alertdialog , inside have implemented listview , footer button part in single linerlayout , set using setview method, solved list view , footer issue.
problem want add header part top of list view.
image link : https://dl.dropboxusercontent.com/u/4048078/device-2013-07-31-141546.png
you can try this
dialog dialog_help = new dialog(getactivity()); dialog_help.setcontentview(r.layout.title_multi_selectitems_dialog); edittext et_1 = (edittext) dialog_help.findviewbyid(r.id.et_help_1); inputmethodmanager imm = (inputmethodmanager) getsystemservice(context.input_method_service); imm.showsoftinput(youredittext, inputmethodmanager.show_implicit); dialog_help.setcancelable(true); dialog_help.settitle(" "); dialog_help.setcanceledontouchoutside(true); dialog_help.show(); dialog_help.getwindow().setgravity(gravity.center); dialog_help.getwindow().setlayout(layoutparams.match_parent,layoutparams.wrap_content);
Comments
Post a Comment