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