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        <include
10            android:id="@+id/toolbar"
11            layout="@layout/toolbar" />
12
13        <com.google.android.material.tabs.TabLayout
14            android:visibility="gone"
15            android:id="@+id/tab_layout"
16            android:layout_width="match_parent"
17            android:layout_height="wrap_content"
18            android:layout_below="@id/toolbar"
19            android:background="?attr/colorPrimary"
20            android:elevation="@dimen/toolbar_elevation"
21            android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
22            app:tabGravity="fill"
23            app:tabIndicatorColor="@color/white87"
24            app:tabMode="fixed"
25            app:tabSelectedTextColor="@color/white"
26            app:tabTextColor="@color/white70" />
27
28        <androidx.viewpager.widget.ViewPager
29            android:id="@+id/start_conversation_view_pager"
30            android:layout_width="match_parent"
31            android:layout_height="match_parent"
32            android:layout_below="@id/tab_layout"
33            android:background="?attr/color_background_primary">
34
35
36        </androidx.viewpager.widget.ViewPager>
37
38        <com.leinardi.android.speeddial.SpeedDialOverlayLayout
39            android:id="@+id/overlay"
40            android:layout_width="match_parent"
41            android:layout_height="match_parent"
42            android:layout_below="@id/tab_layout"
43            android:background="?color_background_overlay" />
44
45
46        <com.leinardi.android.speeddial.SpeedDialView
47            android:id="@+id/speed_dial"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_alignParentEnd="true"
51            android:layout_alignParentBottom="true"
52            android:contentDescription="@string/add_contact_or_create_or_join_group_chat"
53            app:backgroundTint="?colorPrimary"
54            app:sdMainFabClosedBackgroundColor="?colorPrimary"
55            app:sdMainFabClosedSrc="@drawable/ic_add_white_24dp"
56            app:sdMainFabOpenedBackgroundColor="?colorPrimaryDark"
57            app:sdOverlayLayout="@id/overlay"
58            app:sdUseReverseAnimationOnClose="true" />
59    </RelativeLayout>
60</layout>