activity_rtp_session.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    xmlns:tools="http://schemas.android.com/tools">
 5
 6    <RelativeLayout
 7        android:layout_width="match_parent"
 8        android:layout_height="match_parent">
 9
10        <LinearLayout
11            android:background="?colorPrimary"
12            android:layout_width="match_parent"
13            android:layout_height="wrap_content"
14            android:paddingLeft="16dp"
15            android:paddingRight="16dp"
16            android:paddingTop="32dp"
17            android:paddingBottom="32dp"
18            android:orientation="vertical"
19            android:gravity="center_vertical">
20            <TextView
21                android:id="@+id/status"
22                tools:text="Incoming call"
23                android:textColor="@color/white"
24                android:layout_width="wrap_content"
25                android:layout_height="wrap_content"
26                android:textAppearance="@style/TextAppearance.Conversations.Title"/>
27            <TextView
28                android:id="@+id/with"
29                android:textColor="@color/white"
30                android:layout_below="@id/status"
31                android:layout_width="wrap_content"
32                android:layout_height="wrap_content"
33                android:textAppearance="@style/TextAppearance.Conversations.Display2"
34                tools:text="Juliet Capulet"/>
35
36        </LinearLayout>
37
38        <RelativeLayout
39            android:layout_width="288dp"
40            android:layout_height="wrap_content"
41            android:layout_alignParentBottom="true"
42            android:layout_centerHorizontal="true"
43            android:layout_marginBottom="24dp">
44
45            <android.support.design.widget.FloatingActionButton
46                android:id="@+id/reject_call"
47                android:layout_width="wrap_content"
48                android:layout_margin="16dp"
49                android:layout_height="wrap_content"
50                android:layout_alignParentStart="true"
51                android:layout_alignParentLeft="true"
52                android:layout_centerVertical="true"
53                android:src="@drawable/ic_call_end_white_48dp"
54                app:backgroundTint="@color/red700"
55                app:elevation="4dp"
56                app:fabCustomSize="72dp"
57                app:maxImageSize="36dp" />
58
59            <android.support.design.widget.FloatingActionButton
60                android:id="@+id/accept_call"
61                android:layout_width="wrap_content"
62                android:layout_margin="16dp"
63                android:layout_height="wrap_content"
64                android:layout_alignParentEnd="true"
65                android:layout_alignParentRight="true"
66                android:layout_centerVertical="true"
67                android:src="@drawable/ic_call_white_48dp"
68                app:backgroundTint="@color/green700"
69                app:elevation="4dp"
70                app:fabCustomSize="72dp"
71                app:maxImageSize="36dp" />
72        </RelativeLayout>
73
74    </RelativeLayout>
75</layout>