activity_choose_contact.xml

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