Hi,
Well, first of all RelativeLayout ignores layout_gravity. Then you
need to know that gravity means apply gravity to the content of this
view whereas layout_gravity means apply gravity to this view within
its parent. So on a TextView, gravity will align the text within the
bounds of the
As a side-note: I think the TextView's (and EditText) 'gravity' should
have been called 'alignment'. It's called that way in most UI's. :=)
On May 14, 10:54 am, Romain Guy romain...@google.com wrote:
Hi,
Well, first of all RelativeLayout ignores layout_gravity. Then you
need to know that
It used to be called something like that but we decided to unify the
names across all widgets.
On Thu, May 14, 2009 at 7:58 AM, Streets Of Boston
flyingdutc...@gmail.com wrote:
As a side-note: I think the TextView's (and EditText) 'gravity' should
have been called 'alignment'. It's called
Guys,
thanks for clearing up! I'll file a bug against the documentation
then, because there it says:
public static final int gravity
Specifies how to place an object, both its x and y axis, within a
larger containing object.
Which is true for layout_gravity, but not gravity. Apart from that,
On Thu, May 14, 2009 at 9:15 AM, matthias m.kaepp...@googlemail.com wrote:
It would be great though if things like these (i.e. that
RelativeLayout ignores layout_gravity) would appear somewhere in the
documentation. It's not immediately apparent to people why for some
layouts the gravity is
It would be great though if things like these (i.e. that
RelativeLayout ignores layout_gravity) would appear somewhere in the
documentation. It's not immediately apparent to people why for some
layouts the gravity is simply ignored, and for others it's not.
Well no, it's an assumption you
6 matches
Mail list logo