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