We have use

- Frame Layout
drawable/circle.xml

<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">

    <solid android:color="#FF5722" />
    <size
        android:width="200dp"
        android:height="200dp" />

</shape>




activity_main.xml

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        
          <!-- Your content here -->

            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/hello_world"
                android:background="@drawable/circle"
                android:layout_gravity="right|bottom"/>
        </FrameLayout>
Advertisements