app/src/main/res/layout/activity_location_permission.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".LocationPermissionActivity">
<TextView
android:id="@+id/text_enable_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="110dp"
android:layout_marginStart="@dimen/margin"
android:layout_marginEnd="@dimen/margin_end"
android:text="@string/enable_location"
android:textColor="#000000"
android:textSize="36sp" />
<ImageView
android:id="@+id/imageView"
android:layout_width="209dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:contentDescription="@string/location_pin_image"
app:srcCompat="@drawable/google_location_img" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/imageView"
android:layout_marginTop="@dimen/margin"
android:layout_marginStart="@dimen/margin"
android:layout_marginEnd="@dimen/margin"
android:text="@string/require_locaiton_permission"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="16sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/enable_location_button"
android:layout_width="@dimen/pill_shape_width"
android:layout_height="@dimen/pill_shape_height"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/margin"
android:text="@string/allow_location"
app:shapeAppearanceOverlay="@style/PillShapeButton" />
</RelativeLayout>