blob: b72ddcad192245d9a8d13a208ec31cbe6a237e5f [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"
21 android:background="@color/voicemail_playback_ui_background"
22>
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:background="@drawable/dialpad_background"
36 android:layout_weight="1"
37 >
38 <ImageButton
39 android:id="@+id/playback_start_stop"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:background="?android:attr/selectableItemBackground"
43 android:src="@drawable/ic_hold_pause"
44 />
45 </LinearLayout>
46 <LinearLayout
47 android:layout_width="match_parent"
48 android:layout_height="58dip"
49 android:background="@drawable/dialpad_background"
50 android:layout_weight="1"
51 >
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"
65 android:background="@drawable/dialpad_background"
66 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"
90 />
91 <TextView
92 android:id="@+id/playback_position_text"
93 android:layout_height="wrap_content"
94 android:layout_width="wrap_content"
95 android:textSize="14sp"
96 android:layout_alignParentTop="true"
97 android:layout_centerHorizontal="true"
98 android:layout_marginTop="10dip"
99 />
100 <TextView
101 android:id="@+id/playback_speed_text"
102 android:layout_height="wrap_content"
103 android:layout_width="wrap_content"
104 android:textSize="14sp"
105 android:layout_alignParentTop="true"
106 android:layout_centerHorizontal="true"
107 android:layout_marginTop="10dip"
108 android:alpha="0"
109 />
110 <ImageButton
111 android:id="@+id/rate_decrease_button"
112 android:src="@drawable/ic_minus"
113 android:layout_width="64dip"
114 android:layout_height="wrap_content"
115 android:background="?android:attr/selectableItemBackground"
116 android:paddingBottom="19dip"
117 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700118 android:layout_alignParentStart="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700119 android:layout_centerVertical="true"
120 />
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"
131 />
132 </RelativeLayout>
133</RelativeLayout>