1<?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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical"
22    android:background="@color/background_dialer_list_items"
23>
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"
30    >
31        <ImageButton
32            android:id="@+id/playback_start_stop"
33            android:layout_width="match_parent"
34            android:layout_height="58dp"
35            android:layout_marginEnd="@dimen/call_detail_button_spacing"
36            android:layout_weight="1"
37            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"
43            android:layout_width="match_parent"
44            android:layout_height="58dip"
45            android:layout_weight="1"
46            android:background="?android:attr/selectableItemBackground"
47            android:src="@drawable/ic_speakerphone_on"
48            android:contentDescription="@string/description_playback_speakerphone"
49        />
50    </LinearLayout>
51    <RelativeLayout
52        android:id="@+id/seek_container"
53        android:layout_width="match_parent"
54        android:layout_height="80dip"
55        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/ic_voicemail_seek_handle"
68            android:thumbOffset="8dip"
69            android:progress="0"
70            android:paddingStart="8dip"
71            android:paddingEnd="8dip"
72            android:paddingTop="30dip"
73            android:paddingBottom="20dip"
74            android:layout_marginEnd="64dip"
75            android:layout_marginStart="64dip"
76            android:max="0"
77            android:layout_centerVertical="true"
78            android:contentDescription="@string/description_playback_seek"
79        />
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"
107            android:layout_alignParentStart="true"
108            android:layout_centerVertical="true"
109            android:contentDescription="@string/voicemail_play_slower"
110        />
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"
119            android:layout_alignParentEnd="true"
120            android:layout_centerVertical="true"
121            android:contentDescription="@string/voicemail_play_faster"
122        />
123        <View
124            android:layout_width="match_parent"
125            android:layout_height="2dp"
126            android:layout_alignParentBottom="true"/>
127    </RelativeLayout>
128</LinearLayout>
129