Show custom alert dialog with edittext inside it - android java 20 august 2015 by bhavyanshu parasher. overview. this is for my own reference actually but if someone is looking for a solution on how to create a custom alert dialog, then this is the right tutorial for you.. The dialog class is the base class for dialogs, but you should avoid instantiating dialog directly. instead, use one of the following subclasses: alertdialog a dialog that can show a title, up to three buttons, a list of selectable items, or a custom layout.. Alert dialog – part 1 june 17, 2011 december 21, 2014 mark allison 7 comments recently there was a comment on the article shape drawables – part 3 asking if is possible to style an alertdialog, rather than on an activity, as is covered in that article..
Thank you for your suggestion but i have already do that. i have updated my question to show what i have already tried to do. my issue is about the attribute to use in the theme style to change the edittext bottom line color.. An inputtype of "numericpassword" results in an edit text that accepts numbers only, shows a numeric keyboard when focused, and masks the text that is entered for privacy. see the text fields guide for examples of other r.styleable.textview_inputtype settings.. Alertdialog.builder alertdialog = new alertdialog.builder(this, r.style.aboutdialog); note: this is only available for api 11 (android 3.0) and above. if you need to to support android < 3.0 you probably have to create a custom dialog (instead of using alertdialog.