<?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" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/indflag" android:orientation="vertical"> <Button android:id="@+id/btnCapturePicture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Take Image" android:layout_alignParentBottom="true" android:layout_alignParentStart="true" android:layout_marginStart="26dp" android:layout_marginBottom="149dp" /> <Button android:id="@+id/choose_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Choose Image" android:layout_alignBaseline="@+id/btnCapturePicture" android:layout_alignBottom="@+id/btnCapturePicture" android:layout_alignParentEnd="true" android:layout_marginEnd="36dp" /> </RelativeLayout>