• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18        android:layout_width="match_parent"
19        android:layout_height="match_parent">
20
21    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22            android:layout_width="match_parent"
23            android:layout_height="match_parent"
24            android:orientation="vertical"
25            android:gravity="center_horizontal"
26            android:paddingBottom="12dip"
27            android:paddingTop="12dip">
28
29        <ImageView android:id="@android:id/icon"
30                android:layout_width="wrap_content"
31                android:layout_height="wrap_content"
32                android:paddingTop="20dip"
33                android:visibility="gone"
34                android:contentDescription="@null" />
35
36        <!-- Dummy -->
37        <SeekBar android:id="@*android:id/seekbar"
38                android:layout_width="0dip"
39                android:layout_height="wrap_content"
40                android:layout_weight="1"
41                android:visibility="gone" />
42
43        <TextView
44                android:textAppearance="?android:attr/textAppearanceSmall"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:paddingStart="16dip"
48                android:layout_gravity="start"
49                android:text="@string/volume_media_description"
50            />
51
52        <!-- Used for the media volume -->
53        <LinearLayout
54                android:id="@+id/media_section"
55                android:layout_width="match_parent"
56                android:layout_height="wrap_content"
57                android:orientation="vertical">
58
59                <LinearLayout
60                        android:layout_width="match_parent"
61                        android:layout_height="wrap_content"
62                        android:paddingStart="8dip"
63                        android:orientation="horizontal"
64                        android:gravity="center_vertical">
65
66                        <ImageView android:id="@+id/media_mute_button"
67                                android:layout_width="wrap_content"
68                                android:layout_height="wrap_content"
69                                android:padding="16dip"
70                                android:background="?android:attr/selectableItemBackground"
71                                android:contentDescription="@string/volume_media_mute"
72                            />
73
74                        <SeekBar android:id="@+id/media_volume_seekbar"
75                                android:layout_width="0dip"
76                                android:layout_height="wrap_content"
77                                android:layout_weight="1"
78                                android:paddingTop="2dip"
79                                android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
80                </LinearLayout>
81
82        </LinearLayout>
83
84        <!-- Used for the ringer/notification volume -->
85        <LinearLayout
86                android:id="@+id/ringer_section"
87                android:layout_width="match_parent"
88                android:layout_height="wrap_content"
89                android:orientation="vertical">
90
91            <TextView
92                    android:id="@+id/ringer_description_text"
93                    android:textAppearance="?android:attr/textAppearanceSmall"
94                    android:layout_width="wrap_content"
95                    android:layout_height="wrap_content"
96                    android:layout_marginTop="16dip"
97                    android:paddingStart="16dip"
98                    android:layout_gravity="start"
99                    android:text="@string/volume_ring_description"
100                />
101
102            <LinearLayout
103                    android:layout_width="match_parent"
104                    android:layout_height="wrap_content"
105                    android:paddingStart="8dip"
106                    android:orientation="horizontal"
107                    android:gravity="center_vertical">
108
109                    <ImageView android:id="@+id/ringer_mute_button"
110                            android:layout_width="wrap_content"
111                            android:layout_height="wrap_content"
112                            android:padding="16dip"
113                            android:background="?android:attr/selectableItemBackground"
114                            android:contentDescription="@string/volume_ring_mute"
115                        />
116
117                    <SeekBar android:id="@+id/ringer_volume_seekbar"
118                            android:layout_width="0dip"
119                            android:layout_height="wrap_content"
120                            android:layout_weight="1"
121                            android:paddingTop="2dip"
122                            android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
123            </LinearLayout>
124
125        </LinearLayout>
126
127        <!-- Used for the notification volume -->
128        <LinearLayout
129                android:id="@+id/notification_section"
130                android:layout_width="match_parent"
131                android:layout_height="wrap_content"
132                android:orientation="vertical">
133
134            <TextView
135                    android:id="@+id/notification_description_text"
136                    android:textAppearance="?android:attr/textAppearanceSmall"
137                    android:layout_width="wrap_content"
138                    android:layout_height="wrap_content"
139                    android:layout_marginTop="16dip"
140                    android:paddingStart="16dip"
141                    android:layout_gravity="start"
142                    android:text="@string/volume_notification_description"
143                />
144
145            <LinearLayout
146                    android:layout_width="match_parent"
147                    android:layout_height="wrap_content"
148                    android:paddingStart="8dip"
149                    android:orientation="horizontal"
150                    android:gravity="center_vertical">
151
152                    <ImageView android:id="@+id/notification_mute_button"
153                            android:layout_width="wrap_content"
154                            android:layout_height="wrap_content"
155                            android:padding="16dip"
156                            android:background="?android:attr/selectableItemBackground"
157                            android:contentDescription="@string/volume_notification_mute"
158                        />
159
160                    <SeekBar android:id="@+id/notification_volume_seekbar"
161                            android:layout_width="0dip"
162                            android:layout_height="wrap_content"
163                            android:layout_weight="1"
164                            android:paddingTop="2dip"
165                            android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
166            </LinearLayout>
167
168        </LinearLayout>
169
170        <!-- Used for the alarm volume -->
171        <LinearLayout
172                android:id="@+id/alarm_section"
173                android:layout_width="match_parent"
174                android:layout_height="wrap_content"
175                android:orientation="vertical">
176
177                <TextView
178                        android:textAppearance="?android:attr/textAppearanceSmall"
179                        android:layout_width="wrap_content"
180                        android:layout_height="wrap_content"
181                        android:layout_marginTop="16dip"
182                        android:paddingStart="16dip"
183                        android:layout_gravity="start"
184                        android:text="@string/volume_alarm_description"
185                    />
186
187                <!-- Used for the alarm volume -->
188                <LinearLayout
189                        android:layout_width="match_parent"
190                        android:layout_height="wrap_content"
191                        android:paddingStart="8dip"
192                        android:orientation="horizontal"
193                        android:gravity="center_vertical">
194
195                        <ImageView android:id="@+id/alarm_mute_button"
196                                android:layout_width="wrap_content"
197                                android:layout_height="wrap_content"
198                                android:padding="16dip"
199                                android:background="?android:attr/selectableItemBackground"
200                                android:contentDescription="@string/volume_alarm_mute" />
201                        <SeekBar android:id="@+id/alarm_volume_seekbar"
202                                android:layout_width="0dip"
203                                android:layout_height="wrap_content"
204                                android:layout_weight="1"
205                                android:paddingTop="2dip"
206                                android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
207                </LinearLayout>
208
209        </LinearLayout>
210
211    </LinearLayout>
212
213</ScrollView>
214