Vertically centering a view in Android

I track the answer on Google groups, here it is © Romain Guy:

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 TextView whereas layout_gravity will align the TextView within the bounds of its parent.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)