blob: 2f4d33c7a5ea5de7b267b642b5d4a4f95357d57d [file] [log] [blame]
Chiao Cheng9d4f3b22012-09-05 16:00:16 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<RelativeLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Tyler Gunn18164c82014-06-09 10:20:57 -070021 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070022>
23 <!-- Mute, playback, trash buttons. -->
24 <LinearLayout
25 android:id="@+id/buttons_linear_layout"
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:orientation="horizontal"
29 android:layout_alignParentTop="true"
30 >
31 <LinearLayout
32 android:layout_width="match_parent"
33 android:layout_height="58dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070034 android:layout_marginEnd="@dimen/call_detail_button_spacing"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070035 android:layout_weight="1"
36 >
37 <ImageButton
38 android:id="@+id/playback_start_stop"
39 android:layout_width="match_parent"
40 android:layout_height="match_parent"
41 android:background="?android:attr/selectableItemBackground"
42 android:src="@drawable/ic_hold_pause"
Tyler Gunn18164c82014-06-09 10:20:57 -070043 android:contentDescription="@string/voicemail_play_start_pause"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070044 />
45 </LinearLayout>
46 <LinearLayout
47 android:layout_width="match_parent"
48 android:layout_height="58dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070049 android:layout_weight="1"
Yorke Leeaa536fd2013-07-29 11:31:04 -070050 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070051 >
52 <ImageButton
53 android:id="@+id/playback_speakerphone"
54 android:layout_width="match_parent"
55 android:layout_height="match_parent"
56 android:background="?android:attr/selectableItemBackground"
57 android:src="@drawable/ic_speakerphone_on"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080058 android:contentDescription="@string/description_playback_speakerphone"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070059 />
60 </LinearLayout>
61 </LinearLayout>
62 <RelativeLayout
63 android:id="@+id/seek_container"
64 android:layout_width="match_parent"
65 android:layout_height="80dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070066 android:layout_below="@id/buttons_linear_layout"
67 android:layout_marginTop="@dimen/call_detail_button_spacing"
68 >
69 <!-- SeekBar left-right margin decreased from redlines 72dip by 8dip to account for
70 half thumb width (thumb is 16dip).
71 Vertically, SeekBar and rate buttons should be below centre, position achieved by
72 making them centred but giving a difference between top and bottom padding,
73 difference is currently 10dip. -->
74 <SeekBar
75 android:id="@+id/playback_seek"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:progressDrawable="@drawable/seekbar_drawable"
79 android:thumb="@drawable/seek_bar_thumb"
80 android:thumbOffset="8dip"
81 android:progress="0"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070082 android:paddingStart="8dip"
83 android:paddingEnd="8dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070084 android:paddingTop="30dip"
85 android:paddingBottom="20dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070086 android:layout_marginEnd="64dip"
87 android:layout_marginStart="64dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070088 android:max="0"
89 android:layout_centerVertical="true"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080090 android:contentDescription="@string/description_playback_seek"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070091 />
92 <TextView
93 android:id="@+id/playback_position_text"
94 android:layout_height="wrap_content"
95 android:layout_width="wrap_content"
96 android:textSize="14sp"
97 android:layout_alignParentTop="true"
98 android:layout_centerHorizontal="true"
99 android:layout_marginTop="10dip"
100 />
101 <TextView
102 android:id="@+id/playback_speed_text"
103 android:layout_height="wrap_content"
104 android:layout_width="wrap_content"
105 android:textSize="14sp"
106 android:layout_alignParentTop="true"
107 android:layout_centerHorizontal="true"
108 android:layout_marginTop="10dip"
109 android:alpha="0"
110 />
111 <ImageButton
112 android:id="@+id/rate_decrease_button"
113 android:src="@drawable/ic_minus"
114 android:layout_width="64dip"
115 android:layout_height="wrap_content"
116 android:background="?android:attr/selectableItemBackground"
117 android:paddingBottom="19dip"
118 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700119 android:layout_alignParentStart="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700120 android:layout_centerVertical="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700121 android:contentDescription="@string/voicemail_play_slower"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700122 />
123 <ImageButton
124 android:id="@+id/rate_increase_button"
125 android:src="@drawable/ic_plus"
126 android:layout_width="64dip"
127 android:layout_height="wrap_content"
128 android:background="?android:attr/selectableItemBackground"
129 android:paddingBottom="19dip"
130 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700131 android:layout_alignParentEnd="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700132 android:layout_centerVertical="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700133 android:contentDescription="@string/voicemail_play_faster"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700134 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700135 <View
136 android:layout_width="match_parent"
137 android:layout_height="2dp"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700138 android:layout_alignParentBottom="true"/>
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700139 </RelativeLayout>
140</RelativeLayout>