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        <android.support.design.widget.AppBarLayout
11            android:layout_width="match_parent"
12            android:layout_height="wrap_content"
13            android:paddingLeft="16dp"
14            android:paddingTop="32dp"
15            android:paddingRight="16dp"
16            android:paddingBottom="32dp">
17
18            <TextView
19                android:id="@+id/status"
20                android:layout_width="wrap_content"
21                android:layout_height="wrap_content"
22                android:textAppearance="@style/TextAppearance.Conversations.Title"
23                android:textColor="@color/white"
24                tools:text="Incoming call" />
25
26            <TextView
27                android:id="@+id/with"
28                android:layout_width="wrap_content"
29                android:layout_height="wrap_content"
30                android:layout_below="@id/status"
31                android:textAppearance="@style/TextAppearance.Conversations.Display2"
32                android:textColor="@color/white"
33                tools:text="Juliet Capulet" />
34
35        </android.support.design.widget.AppBarLayout>
36
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_height="wrap_content"
49                android:layout_alignParentStart="true"
50                android:layout_alignParentLeft="true"
51                android:layout_centerVertical="true"
52                android:layout_margin="16dp"
53                android:src="@drawable/ic_call_end_white_48dp"
54                android:visibility="gone"
55                app:backgroundTint="@color/red700"
56                app:elevation="4dp"
57                app:fabCustomSize="72dp"
58                app:maxImageSize="36dp"
59                tools:visibility="visible" />
60
61            <android.support.design.widget.FloatingActionButton
62                android:id="@+id/end_call"
63                android:layout_width="wrap_content"
64                android:layout_height="wrap_content"
65                android:layout_centerInParent="true"
66                android:layout_margin="16dp"
67                android:src="@drawable/ic_call_end_white_48dp"
68                android:visibility="gone"
69                app:backgroundTint="@color/red700"
70                app:elevation="4dp"
71                app:fabCustomSize="72dp"
72                app:maxImageSize="36dp" />
73
74            <android.support.design.widget.FloatingActionButton
75                android:id="@+id/accept_call"
76                android:layout_width="wrap_content"
77                android:layout_height="wrap_content"
78                android:layout_alignParentEnd="true"
79                android:layout_alignParentRight="true"
80                android:layout_centerVertical="true"
81                android:layout_margin="16dp"
82                android:src="@drawable/ic_call_white_48dp"
83                android:visibility="gone"
84                app:backgroundTint="@color/green700"
85                app:elevation="4dp"
86                app:fabCustomSize="72dp"
87                app:maxImageSize="36dp"
88                tools:visibility="visible" />
89        </RelativeLayout>
90
91    </RelativeLayout>
92</layout>