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