summaryrefslogtreecommitdiffstats
path: root/java/com/android/incallui/video/impl/res/layout-land/videocall_controls_surfaceview.xml
blob: 40b50bc704b0549fa6a8dcc1466b563b96079d85 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/videocall_video_controls_container"
  android:fitsSystemWindows="true"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">

  <include
    android:id="@+id/incall_contact_grid"
    layout="@layout/video_contact_grid"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="16dp"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"/>

  <!-- This placeholder matches the position of the preview UI and is used to
     anchor video buttons. This is needed in greenscreen mode when the
     preview is fullscreen but we want the controls to be positioned as
     normal.  -->
  <Space
    android:id="@+id/videocall_video_preview_placeholder"
    android:layout_width="@dimen/videocall_preview_long"
    android:layout_height="@dimen/videocall_preview_height"
    android:layout_marginEnd="@dimen/videocall_preview_margin_end"
    android:layout_alignParentBottom="true"
    android:layout_alignParentEnd="true"
    android:visibility="invisible"/>

  <LinearLayout
    android:id="@+id/videocall_video_controls"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignBottom="@+id/videocall_video_preview_placeholder"
    android:layout_alignTop="@+id/videocall_video_preview_placeholder"
    android:layout_toStartOf="@+id/videocall_video_preview_placeholder"
    android:gravity="center_horizontal"
    android:orientation="horizontal"
    android:visibility="invisible"
    tools:visibility="visible">
    <com.android.incallui.video.impl.CheckableImageButton
      android:id="@+id/videocall_speaker_button"
      style="@style/Incall.Button.VideoCall"
      android:layout_width="@dimen/videocall_button_size"
      android:layout_height="@dimen/videocall_button_size"
      android:layout_marginEnd="24dp"
      android:checked="true"
      android:src="@drawable/quantum_ic_volume_up_white_36"
      app:contentDescriptionChecked="@string/incall_content_description_speaker"
      app:contentDescriptionUnchecked="@string/incall_content_description_earpiece"
      />
    <com.android.incallui.video.impl.CheckableImageButton
      android:id="@+id/videocall_mute_button"
      style="@style/Incall.Button.VideoCall"
      android:layout_width="@dimen/videocall_button_size"
      android:layout_height="@dimen/videocall_button_size"
      android:layout_marginEnd="24dp"
      android:scaleType="center"
      android:src="@drawable/quantum_ic_mic_off_white_36"
      app:contentDescriptionChecked="@string/incall_content_description_muted"
      app:contentDescriptionUnchecked="@string/incall_content_description_unmuted"
      />
    <com.android.incallui.video.impl.CheckableImageButton
      android:id="@+id/videocall_mute_video"
      style="@style/Incall.Button.VideoCall"
      android:layout_width="@dimen/videocall_button_size"
      android:layout_height="@dimen/videocall_button_size"
      android:layout_marginEnd="24dp"
      android:scaleType="center"
      android:src="@drawable/quantum_ic_videocam_off_white_36"
      app:contentDescriptionChecked="@string/incall_content_description_video_off"
      app:contentDescriptionUnchecked="@string/incall_content_description_video_on"
      />
    <include
      layout="@layout/switch_camera_button"
      android:layout_width="@dimen/videocall_button_size"
      android:layout_height="@dimen/videocall_button_size"
      android:layout_marginEnd="24dp"/>
  </LinearLayout>

  <FrameLayout
    android:id="@+id/videocall_switch_controls"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="36dp"
    android:layout_marginEnd="36dp"
    android:layout_alignParentEnd="true"
    android:layout_alignParentTop="true">
    <ImageButton
      android:id="@+id/videocall_switch_on_hold"
      style="@style/Incall.Button.VideoCall"
      android:layout_width="@dimen/videocall_button_size"
      android:layout_height="@dimen/videocall_button_size"
      android:contentDescription="@string/incall_content_description_swap_calls"
      android:src="@drawable/quantum_ic_swap_calls_white_36"
      android:visibility="gone"
      tools:visibility="visible"
      />
  </FrameLayout>

  <ImageButton
    android:id="@+id/videocall_end_call"
    style="@style/Incall.Button.End"
    android:layout_marginEnd="36dp"
    android:layout_alignParentEnd="true"
    android:layout_centerVertical="true"
    android:contentDescription="@string/incall_content_description_end_call"
    android:visibility="visible"/>

</RelativeLayout>