[android-developers] Re: overriding button style Widget.Button
Why 'remove' the gravity style? Even if you remove it, the text in the button needs to be drawn somewhere (probably left-aligned).
You could just set it to the value you want:
E.g.
<item name="android:gravity">left</item>
Hello,--
The button style has gravity specifications like center_vertical|
center_horizontal in frameworks/base/core/res/res/values/styles.xml.
I'm trying to override this style for a custom view to remove the
gravity specifications but unable to do that.
The android:gravity item of the new styles doesn't accept
no_gravity or 0 and just errors out.
Is there any way to override this button style and remove the
default gravity specifications?
Thanks in advance !!!
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home