blob: 640daedc53c37f71bf922452cbf7ee3517bc4f76 [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"
Yorke Leeaa536fd2013-07-29 11:31:04 -070021 android:background="@color/background_dialer_light"
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"
Yorke Leeaa536fd2013-07-29 11:31:04 -070036 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070037 >
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"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080044 android:contentDescription="@string/description_playback_start_stop"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070045 />
46 </LinearLayout>
47 <LinearLayout
48 android:layout_width="match_parent"
49 android:layout_height="58dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070050 android:layout_weight="1"
Yorke Leeaa536fd2013-07-29 11:31:04 -070051 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070052 >
53 <ImageButton
54 android:id="@+id/playback_speakerphone"
55 android:layout_width="match_parent"
56 android:layout_height="match_parent"
57 android:background="?android:attr/selectableItemBackground"
58 android:src="@drawable/ic_speakerphone_on"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080059 android:contentDescription="@string/description_playback_speakerphone"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070060 />
61 </LinearLayout>
62 </LinearLayout>
63 <RelativeLayout
64 android:id="@+id/seek_container"
65 android:layout_width="match_parent"
66 android:layout_height="80dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070067 android:layout_below="@id/buttons_linear_layout"
68 android:layout_marginTop="@dimen/call_detail_button_spacing"
Yorke Leeaa536fd2013-07-29 11:31:04 -070069 android:background="@color/background_dialer_list_items"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070070 >
71 <!-- SeekBar left-right margin decreased from redlines 72dip by 8dip to account for
72 half thumb width (thumb is 16dip).
73 Vertically, SeekBar and rate buttons should be below centre, position achieved by
74 making them centred but giving a difference between top and bottom padding,
75 difference is currently 10dip. -->
76 <SeekBar
77 android:id="@+id/playback_seek"
78 android:layout_width="match_parent"
79 android:layout_height="wrap_content"
80 android:progressDrawable="@drawable/seekbar_drawable"
81 android:thumb="@drawable/seek_bar_thumb"
82 android:thumbOffset="8dip"
83 android:progress="0"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070084 android:paddingStart="8dip"
85 android:paddingEnd="8dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070086 android:paddingTop="30dip"
87 android:paddingBottom="20dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070088 android:layout_marginEnd="64dip"
89 android:layout_marginStart="64dip"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070090 android:max="0"
91 android:layout_centerVertical="true"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +080092 android:contentDescription="@string/description_playback_seek"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070093 />
94 <TextView
95 android:id="@+id/playback_position_text"
96 android:layout_height="wrap_content"
97 android:layout_width="wrap_content"
98 android:textSize="14sp"
99 android:layout_alignParentTop="true"
100 android:layout_centerHorizontal="true"
101 android:layout_marginTop="10dip"
102 />
103 <TextView
104 android:id="@+id/playback_speed_text"
105 android:layout_height="wrap_content"
106 android:layout_width="wrap_content"
107 android:textSize="14sp"
108 android:layout_alignParentTop="true"
109 android:layout_centerHorizontal="true"
110 android:layout_marginTop="10dip"
111 android:alpha="0"
112 />
113 <ImageButton
114 android:id="@+id/rate_decrease_button"
115 android:src="@drawable/ic_minus"
116 android:layout_width="64dip"
117 android:layout_height="wrap_content"
118 android:background="?android:attr/selectableItemBackground"
119 android:paddingBottom="19dip"
120 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700121 android:layout_alignParentStart="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700122 android:layout_centerVertical="true"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +0800123 android:contentDescription="@string/description_rate_decrease"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700124 />
125 <ImageButton
126 android:id="@+id/rate_increase_button"
127 android:src="@drawable/ic_plus"
128 android:layout_width="64dip"
129 android:layout_height="wrap_content"
130 android:background="?android:attr/selectableItemBackground"
131 android:paddingBottom="19dip"
132 android:paddingTop="29dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700133 android:layout_alignParentEnd="true"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700134 android:layout_centerVertical="true"
HUANG Menghuai4f9742c2013-08-21 15:04:25 +0800135 android:contentDescription="@string/description_rate_increase"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700136 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700137 <View
138 android:layout_width="match_parent"
139 android:layout_height="2dp"
140 android:background="@color/background_dialer_light"
141 android:layout_alignParentBottom="true"/>
Chiao Cheng9d4f3b22012-09-05 16:00:16 -0700142 </RelativeLayout>
143</RelativeLayout>