blob: 795d2f85077749b7f8d75ec293ed0240ee8624bc [file] [log] [blame]
Mike Doddd3b009a2015-08-11 11:16:59 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2015 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<com.android.messaging.ui.mediapicker.AudioRecordView
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:background="@android:color/white"
23 android:importantForAccessibility="no" >
24
25 <FrameLayout
26 android:id="@+id/mediapicker_enabled"
27 android:layout_width="match_parent"
28 android:layout_height="match_parent" >
29
30 <TextView
31 android:id="@+id/hint_text"
32 style="@style/AudioPickerHintText"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:layout_gravity="top|center"
36 android:layout_marginTop="16dp"
37 android:text="@string/audio_picker_hint_text"
38 android:importantForAccessibility="no" />
39
40 <com.android.messaging.ui.mediapicker.PausableChronometer
41 android:id="@+id/timer_text"
42 style="@style/AudioPickerTimerText"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_gravity="top|center"
46 android:layout_marginTop="16dp"
47 android:visibility="gone" />
48
49 <com.android.messaging.ui.mediapicker.SoundLevels
50 android:id="@+id/sound_levels"
51 android:layout_width="260dp"
52 android:layout_height="260dp"
53 android:layout_gravity="center"
54 android:focusableInTouchMode="false"
55 app:minLevelRadius="55dp"
56 app:maxLevelRadius="130dp"
57 app:primaryColor="@color/audio_picker_level_primary_color" />
58
59 <!-- View to make the touachable area larger for accessibility's two-finger touch -->
60 <FrameLayout
61 android:id="@+id/record_button"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_gravity="center"
65 android:padding="30dp"
66 android:focusable="true"
67 android:focusableInTouchMode="true"
68 android:contentDescription="@string/audio_record_view_content_description" >
69
70 <ImageView
71 android:id="@+id/record_button_visual"
72 android:layout_width="70dp"
73 android:layout_height="70dp"
74 android:layout_margin="30dp"
75 android:layout_gravity="center"
76 android:scaleType="center"
77 android:src="@drawable/ic_mp_audio_mic"
78 android:background="@drawable/audio_record_control_button_background"
79 android:importantForAccessibility="no"
80 android:contentDescription="@null" />
81 </FrameLayout>
82
83 </FrameLayout>
84
85 <!-- This view will hide all other views if the required permission is not granted -->
86 <TextView
87 android:id="@+id/missing_permission_view"
88 android:layout_width="match_parent"
89 android:layout_height="match_parent"
90 android:text="@string/enable_permission_procedure"
91 android:contentDescription="@string/enable_permission_procedure_description"
92 android:background="@android:color/white"
93 android:gravity="center"
94 android:visibility="gone" />
95
96</com.android.messaging.ui.mediapicker.AudioRecordView>