Android Relative Layout Center Vertical With Margin
Answer : Try this: Try to use RelativeLayout which can easily done your requirement using weight : <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical"> <TextView android:id="@id/dummy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_centerHorizontal="true" /> <TextView android:layout_below="@id/dummy" android:layout_marginTop="10dp" android:text="This is TextView" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </RelativeLayout> Try to use LinearLayout which can easily done your requirement using weight : <LinearLayout xmlns:and...