blob: 500ed96b5f693d13fad92819fdd32a5bdcf6b959 [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
Yorke Lee8cd94232014-07-23 14:05:31 -070017<LinearLayout
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Yorke Lee8cd94232014-07-23 14:05:31 -070021 android:orientation="vertical"
Tyler Gunn18164c82014-06-09 10:20:57 -070022 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070023>
24 <!-- Mute, playback, trash buttons. -->
25 <LinearLayout
26 android:id="@+id/buttons_linear_layout"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:orientation="horizontal"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070030 >
Yorke Lee8cd94232014-07-23 14:05:31 -070031 <ImageButton
32 android:id="@+id/playback_start_stop"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070033 android:layout_width="match_parent"
Yorke Lee8cd94232014-07-23 14:05:31 -070034 android:layout_height="58dp"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070035 android:layout_marginEnd="@dimen/call_detail_button_spacing"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070036 android:layout_weight="1"
Yorke Lee8cd94232014-07-23 14:05:31 -070037 android:background="?android:attr/selectableItemBackground"
38 android:src="@drawable/ic_hold_pause"
39 android:contentDescription="@string/voicemail_play_start_pause"
40 />
41 <ImageButton
42 android:id="@+id/playback_speakerphone"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070043 android:layout_width="match_parent"
44 android:layout_height="58dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070045 android:layout_weight="1"
Yorke Lee8cd94232014-07-23 14:05:31 -070046 android:background="?android:attr/selectableItemBackground"
47 android:src="@drawable/ic_speakerphone_on"
48 android:contentDescription="@string/description_playback_speakerphone"
49 />
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070050 </LinearLayout>
51 <RelativeLayout
52 android:id="@+id/seek_container"
53 android:layout_width="match_parent"
54 android:layout_height="80dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070055 android:layout_marginTop="@dimen/call_detail_button_spacing"
56 >
57 <!-- SeekBar left-right margin decreased from redlines 72dip by 8dip to account for
58 half thumb width (thumb is 16dip).
59 Vertically, SeekBar and rate buttons should be below centre, position achieved by
60 making them centred but giving a difference between top and bottom padding,
61 difference is currently 10dip. -->
62 <SeekBar
63 android:id="@+id/playback_seek"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:progressDrawable="@drawable/seekbar_drawable"
67 android:thumb="@drawable/seek_bar_thumb"
68 android:thumbOffset="8dip"
69 android:progress="0"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070070 android:paddingStart="8dip"
71 android:paddingEnd="8dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070072 android:paddingTop="30dip"
73 android:paddingBottom="20dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070074 android:layout_marginEnd="64dip"
75 android:layout_marginStart="64dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070076 android:max="0"
77 android:layout_centerVertical="true"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080078 android:contentDescription="@string/description_playback_seek"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070079 />
80 <TextView
81 android:id="@+id/playback_position_text"
82 android:layout_height="wrap_content"
83 android:layout_width="wrap_content"
84 android:textSize="14sp"
85 android:layout_alignParentTop="true"
86 android:layout_centerHorizontal="true"
87 android:layout_marginTop="10dip"
88 />
89 <TextView
90 android:id="@+id/playback_speed_text"
91 android:layout_height="wrap_content"
92 android:layout_width="wrap_content"
93 android:textSize="14sp"
94 android:layout_alignParentTop="true"
95 android:layout_centerHorizontal="true"
96 android:layout_marginTop="10dip"
97 android:alpha="0"
98 />
99 <ImageButton
100 android:id="@+id/rate_decrease_button"
101 android:src="@drawable/ic_minus"
102 android:layout_width="64dip"
103 android:layout_height="wrap_content"
104 android:background="?android:attr/selectableItemBackground"
105 android:paddingBottom="19dip"
106 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700107 android:layout_alignParentStart="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700108 android:layout_centerVertical="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700109 android:contentDescription="@string/voicemail_play_slower"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700110 />
111 <ImageButton
112 android:id="@+id/rate_increase_button"
113 android:src="@drawable/ic_plus"
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_alignParentEnd="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_faster"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700122 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700123 <View
124 android:layout_width="match_parent"
125 android:layout_height="2dp"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700126 android:layout_alignParentBottom="true"/>
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700127 </RelativeLayout>
Yorke Lee8cd94232014-07-23 14:05:31 -0700128</LinearLayout>