activity_start_conversation.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    <RelativeLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:fitsSystemWindows="true">
 9
10        <com.google.android.material.appbar.AppBarLayout
11            android:id="@+id/app_bar_layout"
12            android:layout_width="match_parent"
13            android:layout_height="wrap_content">
14
15            <com.google.android.material.appbar.MaterialToolbar
16                android:id="@+id/toolbar"
17                android:layout_width="match_parent"
18                android:layout_height="wrap_content"
19                android:minHeight="?attr/actionBarSize" />
20
21            <com.google.android.material.tabs.TabLayout
22                android:id="@+id/tab_layout"
23                android:layout_width="match_parent"
24                android:layout_height="wrap_content"
25                android:layout_below="@id/app_bar_layout"
26                android:visibility="gone"
27                app:tabGravity="fill"
28                app:tabMode="fixed" />
29
30        </com.google.android.material.appbar.AppBarLayout>
31
32
33        <androidx.viewpager.widget.ViewPager
34            android:id="@+id/start_conversation_view_pager"
35            android:layout_width="match_parent"
36            android:layout_height="match_parent"
37            android:layout_below="@id/app_bar_layout">
38
39
40        </androidx.viewpager.widget.ViewPager>
41
42        <com.leinardi.android.speeddial.SpeedDialOverlayLayout
43            android:id="@+id/overlay"
44            android:layout_width="match_parent"
45            android:layout_height="match_parent"
46            android:layout_below="@id/app_bar_layout" />
47
48
49        <com.leinardi.android.speeddial.SpeedDialView
50            android:id="@+id/speed_dial"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:layout_alignParentEnd="true"
54            android:layout_alignParentBottom="true"
55            android:contentDescription="@string/add_contact_or_create_or_join_group_chat"
56            app:sdMainFabClosedBackgroundColor="?colorPrimaryContainer"
57            app:sdMainFabClosedIconColor="?colorOnPrimaryContainer"
58            app:sdMainFabClosedSrc="@drawable/ic_add_24dp"
59            app:sdMainFabOpenedBackgroundColor="?colorPrimaryContainer"
60            app:sdMainFabOpenedIconColor="?colorOnPrimaryContainer"
61            app:sdOverlayLayout="@id/overlay"
62            app:sdUseReverseAnimationOnClose="true" />
63    </RelativeLayout>
64</layout>