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"&gt; <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?

How can I change the button radius in Material Design 3?

Advertisements Google tells me I can change the button radius as you can see in the image below but not explain how I want to change from rounded full (7) to rounded small (3) as you can see in the image below Here is the button <com.google.android.material.button.MaterialButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:insetLeft="0dp" android:insetTop="0dp" android:insetRight="0dp" android:insetBottom="0dp" android:text="…" />… Read More How can I change the button radius in Material Design 3?