Android
Pages
Codes and Examples
How To Install Android
Android Interview Questions
Windows Shortcuts
Word shorcuts
Emulator Shortcuts
Saturday, January 26, 2013
Change color of alertdialog button
Button b = dialogf.getButton(DialogInterface.BUTTON_NEGATIVE);
if(b != null){
b.setBackgroundDrawable(getResources().getDrawable(R.drawable.loginbutton));
b.setTextColor(getResources().getColor(android.R.color.white));
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment