How Do You Pass The Gravity Attribute Via Xml For A Custom View?
I'm trying to figure out how to pass android:gravity via xml for a custom view. The solution posted here (https://stackoverflow.com/a/3441986/413254) says to add the android:gravi
Solution 1:
by writing:
<attr format="integer" name="android:gravity"/>
you are intruducing the new attribute android:gravity
with integer format, of course android:gravity
is already defined in the system, so you need to change it into:
<attrname="android:gravity"/>
Post a Comment for "How Do You Pass The Gravity Attribute Via Xml For A Custom View?"