Wednesday, October 23, 2013

[android-developers] How to add icon n icon to button in AlertDialog?

Hi,

I need to show a "Call" icon along with Label "Call" on a positive button of alertDialog.
The icon should be just near the Label and both should be centered in between the button area.

When used setCompoundDrawablesWithIntrinsicBounds (LEFT, null,null, null), the icon touches the left side and label is in center. I need to remove the gap in between. Can you help me in achieving the same?

Regards
Raminder

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate