activity_choose_contact.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3        xmlns:app="http://schemas.android.com/apk/res-auto">
 4
 5    <LinearLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:orientation="vertical">
 9
10        <include android:id="@+id/toolbar"
11            layout="@layout/toolbar" />
12
13        <FrameLayout
14            android:layout_width="match_parent"
15            android:layout_height="match_parent"
16            android:background="?attr/color_background_primary">
17
18            <ListView
19                android:id="@+id/choose_contact_list"
20                android:layout_width="match_parent"
21                android:layout_height="match_parent"
22                android:divider="@android:color/transparent"
23                android:dividerHeight="0dp"/>
24
25            <com.google.android.material.floatingactionbutton.FloatingActionButton
26                android:id="@+id/fab"
27                android:visibility="gone"
28                app:backgroundTint="?colorPrimary"
29                android:layout_width="wrap_content"
30                android:layout_height="wrap_content"
31                android:layout_gravity="end|bottom"
32                android:layout_margin="16dp"
33                android:src="@drawable/ic_person_add_white_24dp"/>
34        </FrameLayout>
35    </LinearLayout>
36</layout>