It is necessary to make a separator between the buttons, I do not understand how the buttons merge into one background, the line that is visible on the layout is not displayed on the device.
Layout code
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:orientation="horizontal" android:id="@+id/startActivity" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/map" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.it.irent.irentit.MapsActivity" /> <LinearLayout android:id="@+id/buttonsContainer" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" android:layout_alignParentStart="true"> <Button android:id="@+id/btnReg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_weight="0.66" android:padding="40dp" android:text="@string/register" android:textColor="@color/white" android:background="#044d68" android:onClick="onClickRegister" /> <View android:id="@+id/view_line" android:layout_width="0dp" android:layout_height="50dp" android:layout_alignParentBottom="true" android:layout_alignParentStart="true" android:layout_marginBottom="30dp" android:layout_marginTop="435dp" android:visibility="visible" /> <Button android:id="@+id/btnLog" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:padding="40dp" android:text="@string/login" android:layout_weight="1" android:background="#044d68" android:textColor="@color/white" android:onClick="onClickLogin" /> </LinearLayout> </RelativeLayout> 



android:background- Yuriy SPb ♦