JLChen
2021-01-04 ed86fe7ed952bb2151aac8841134246bbde152c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/topLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?attr/backgroundColor">
 
    <androidx.drawerlayout.widget.DrawerLayout
        android:id="@+id/side_menu"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
 
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">
 
            <TextureView
                android:id="@+id/remote_video_texture"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
 
            <org.linphone.mediastream.video.capture.CaptureTextureView
                android:id="@+id/local_preview_texture"
                android:layout_width="200dp"
                android:layout_height="200dp"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="true" />
 
            <RelativeLayout
                android:id="@+id/active_calls"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginBottom="60dp"
                android:layout_marginTop="40dp">
 
                <include layout="@layout/call_conference_header" android:visibility="gone" />
 
                <RelativeLayout
                    android:id="@+id/active_call"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
 
                    <include layout="@layout/call_active_header" />
 
                    <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_below="@id/active_call_info"
                        android:layout_centerInParent="true"
                        android:layout_margin="5dp"
                        android:gravity="center">
 
                        <include layout="@layout/contact_avatar_200" />
 
                    </RelativeLayout>
 
                    <include layout="@layout/call_paused_by_remote" android:visibility="gone" />
 
                    <ImageView
                        android:id="@+id/pause"
                        android:layout_width="80dp"
                        android:layout_height="80dp"
                        android:layout_below="@id/active_call_info"
                        android:layout_alignParentRight="true"
                        android:contentDescription="@string/content_description_pause"
                        android:padding="20dp"
                        android:src="@drawable/pause" />
 
                    <ImageView
                        android:id="@+id/switchCamera"
                        android:layout_width="80dp"
                        android:layout_height="80dp"
                        android:layout_below="@id/active_call_info"
                        android:layout_alignParentLeft="true"
                        android:contentDescription="@string/content_description_switch_camera"
                        android:padding="20dp"
                        android:src="@drawable/switch_camera"
                        android:visibility="invisible" />
 
                </RelativeLayout>
 
                <LinearLayout
                    android:id="@+id/calls_list"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_gravity="bottom"
                    android:background="@color/white_color"
                    android:orientation="vertical"/>
 
                <ImageView
                    android:id="@+id/recording"
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    android:layout_alignParentLeft="true"
                    android:layout_alignParentBottom="true"
                    android:layout_margin="20dp"
                    android:background="@drawable/round_orange_button_background"
                    android:contentDescription="@string/content_description_record_call"
                    android:padding="8dp"
                    android:src="@drawable/options_rec"
                    android:visibility="gone" />
 
            </RelativeLayout>
 
            <RelativeLayout
                android:baselineAligned="false"
                android:id="@+id/buttons"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="40dp"
                android:gravity="bottom">
 
                <!-- This is a better way of splitting screen 50/50 than using weights -->
                <View
                    android:id="@+id/vertical_divider"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_centerHorizontal="true" />
 
                <include layout="@layout/call_primary_buttons"
                    android:id="@+id/call_primary_buttons"
                    android:layout_width="match_parent"
                    android:layout_height="60dp"
                    android:layout_alignParentBottom="true"
                    android:layout_toLeftOf="@id/vertical_divider" />
 
                <ViewStub
                    android:id="@+id/numpad"
                    android:inflatedId="@+id/numpad"
                    android:layout="@layout/numpad"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_centerInParent="true"
                    android:layout_above="@id/call_primary_buttons"
                    android:background="@color/toolbar_color" />
 
                <include layout="@layout/call_secondary_buttons"
                    android:id="@+id/call_secondary_buttons"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/vertical_divider" />
 
            </RelativeLayout>
 
        </RelativeLayout>
 
        <RelativeLayout
            android:id="@+id/side_menu_content"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="left"
            android:layout_marginTop="40dp"
            android:background="?attr/backgroundColor">
 
            <fragment
                android:id="@+id/call_stats_fragment"
                android:name="org.linphone.call.CallStatsFragment"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                tools:layout="@layout/call_stats" />
 
        </RelativeLayout>
 
    </androidx.drawerlayout.widget.DrawerLayout>
 
    <fragment
        android:id="@+id/status_bar_fragment"
        android:name="org.linphone.call.CallStatusBarFragment"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        tools:layout="@layout/status_bar" />
 
</RelativeLayout>