blob: aa3ab4788e6499e3bf8fa8f856372d16a586c2fe [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"
58 />
59 </LinearLayout>
60 </LinearLayout>
61 <RelativeLayout
62 android:id="@+id/seek_container"
63 android:layout_width="match_parent"
64 android:layout_height="80dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070065 android:layout_below="@id/buttons_linear_layout"
66 android:layout_marginTop="@dimen/call_detail_button_spacing"
67 >
68 <!-- SeekBar left-right margin decreased from redlines 72dip by 8dip to account for
69 half thumb width (thumb is 16dip).
70 Vertically, SeekBar and rate buttons should be below centre, position achieved by
71 making them centred but giving a difference between top and bottom padding,
72 difference is currently 10dip. -->
73 <SeekBar
74 android:id="@+id/playback_seek"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:progressDrawable="@drawable/seekbar_drawable"
78 android:thumb="@drawable/seek_bar_thumb"
79 android:thumbOffset="8dip"
80 android:progress="0"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070081 android:paddingStart="8dip"
82 android:paddingEnd="8dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070083 android:paddingTop="30dip"
84 android:paddingBottom="20dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070085 android:layout_marginEnd="64dip"
86 android:layout_marginStart="64dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070087 android:max="0"
88 android:layout_centerVertical="true"
89 />
90 <TextView
91 android:id="@+id/playback_position_text"
92 android:layout_height="wrap_content"
93 android:layout_width="wrap_content"
94 android:textSize="14sp"
95 android:layout_alignParentTop="true"
96 android:layout_centerHorizontal="true"
97 android:layout_marginTop="10dip"
98 />
99 <TextView
100 android:id="@+id/playback_speed_text"
101 android:layout_height="wrap_content"
102 android:layout_width="wrap_content"
103 android:textSize="14sp"
104 android:layout_alignParentTop="true"
105 android:layout_centerHorizontal="true"
106 android:layout_marginTop="10dip"
107 android:alpha="0"
108 />
109 <ImageButton
110 android:id="@+id/rate_decrease_button"
111 android:src="@drawable/ic_minus"
112 android:layout_width="64dip"
113 android:layout_height="wrap_content"
114 android:background="?android:attr/selectableItemBackground"
115 android:paddingBottom="19dip"
116 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700117 android:layout_alignParentStart="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700118 android:layout_centerVertical="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700119 android:contentDescription="@string/voicemail_play_slower"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700120 />
121 <ImageButton
122 android:id="@+id/rate_increase_button"
123 android:src="@drawable/ic_plus"
124 android:layout_width="64dip"
125 android:layout_height="wrap_content"
126 android:background="?android:attr/selectableItemBackground"
127 android:paddingBottom="19dip"
128 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700129 android:layout_alignParentEnd="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700130 android:layout_centerVertical="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700131 android:contentDescription="@string/voicemail_play_faster"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700132 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700133 <View
134 android:layout_width="match_parent"
135 android:layout_height="2dp"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700136 android:layout_alignParentBottom="true"/>
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700137 </RelativeLayout>
138</RelativeLayout>