Android: Align Center Vertical In RelativeLayout
Posted by admin on
May 22, 2011
Users tend to mistake aligning a view vertically by using android:layout_gravity=”center_vertical”. This holds true in other layouts but does not work under a RelativeLayout.
You will have to use the attribute android:layout_centerVertical=”true“ to make this work.
Donations appreciated. Every little $ helps. Or click Google +1.









