How to position button relative to the bottom of the screen?
Advertisements I’m trying to position my button 50dp above the bottom of the screen. I know how to do this if I’m positioning it relative to the top of the screen with layout_marginTop but using layout_marginBottom doesn’t seem to be working, here’s my code: <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <Button android:id="@+id/btn1" android:layout_width="296dp" android:layout_height="67dp" android:layout_centerHorizontal="true" android:layout_marginBottom="50dp" android:text="Button… Read More How to position button relative to the bottom of the screen?