In XML there is
<Button android:id="@+id/Btn1"
android:layout_height="50dp" android:layout_width="50dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
/>
to position elements half in between the top and buttom of the screen.
Is there also a way to position a Button Btn2 right in between Btn1 and the top or buttom of the screen ?
And then how to position Button Btn3 right half between Btn1 and Btn2?
EDIT: I need this in a RELATIVE LAYOUT
thanks
Just apply the whole layout don’t miss any point from below. and it will work for all the screen size android phones.