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