Home | History | Annotate | Download | only in layout
      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:layout_width="match_parent"
     55                 android:layout_height="wrap_content"
     56                 android:paddingStart="8dip"
     57                 android:orientation="horizontal"
     58                 android:gravity="center_vertical">
     59 
     60                 <ImageView android:id="@+id/media_mute_button"
     61                         android:layout_width="wrap_content"
     62                         android:layout_height="wrap_content"
     63                         android:padding="16dip"
     64                         android:background="?android:attr/selectableItemBackground"
     65                         android:contentDescription="@string/volume_media_mute"
     66                     />
     67 
     68                 <SeekBar android:id="@+id/media_volume_seekbar"
     69                         android:layout_width="0dip"
     70                         android:layout_height="wrap_content"
     71                         android:layout_weight="1"
     72                         android:paddingTop="2dip"
     73                         android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
     74         </LinearLayout>
     75 
     76         <!-- Used for the ringer/notification volume -->
     77         <LinearLayout
     78                 android:id="@+id/ringer_section"
     79                 android:layout_width="match_parent"
     80                 android:layout_height="wrap_content"
     81                 android:orientation="vertical">
     82 
     83             <TextView
     84                     android:id="@+id/ringer_description_text"
     85                     android:textAppearance="?android:attr/textAppearanceSmall"
     86                     android:layout_width="wrap_content"
     87                     android:layout_height="wrap_content"
     88                     android:layout_marginTop="16dip"
     89                     android:paddingStart="16dip"
     90                     android:layout_gravity="start"
     91                     android:text="@string/volume_ring_description"
     92                 />
     93 
     94             <LinearLayout
     95                     android:layout_width="match_parent"
     96                     android:layout_height="wrap_content"
     97                     android:paddingStart="8dip"
     98                     android:orientation="horizontal"
     99                     android:gravity="center_vertical">
    100 
    101                     <ImageView android:id="@+id/ringer_mute_button"
    102                             android:layout_width="wrap_content"
    103                             android:layout_height="wrap_content"
    104                             android:padding="16dip"
    105                             android:background="?android:attr/selectableItemBackground"
    106                             android:contentDescription="@string/volume_ring_mute"
    107                         />
    108 
    109                     <SeekBar android:id="@+id/ringer_volume_seekbar"
    110                             android:layout_width="0dip"
    111                             android:layout_height="wrap_content"
    112                             android:layout_weight="1"
    113                             android:paddingTop="2dip"
    114                             android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
    115             </LinearLayout>
    116 
    117         </LinearLayout>
    118 
    119         <!-- Used for the notification volume -->
    120         <LinearLayout
    121                 android:id="@+id/notification_section"
    122                 android:layout_width="match_parent"
    123                 android:layout_height="wrap_content"
    124                 android:orientation="vertical">
    125 
    126             <TextView
    127                     android:id="@+id/notification_description_text"
    128                     android:textAppearance="?android:attr/textAppearanceSmall"
    129                     android:layout_width="wrap_content"
    130                     android:layout_height="wrap_content"
    131                     android:layout_marginTop="16dip"
    132                     android:paddingStart="16dip"
    133                     android:layout_gravity="start"
    134                     android:text="@string/volume_notification_description"
    135                 />
    136 
    137             <LinearLayout
    138                     android:layout_width="match_parent"
    139                     android:layout_height="wrap_content"
    140                     android:paddingStart="8dip"
    141                     android:orientation="horizontal"
    142                     android:gravity="center_vertical">
    143 
    144                     <ImageView android:id="@+id/notification_mute_button"
    145                             android:layout_width="wrap_content"
    146                             android:layout_height="wrap_content"
    147                             android:padding="16dip"
    148                             android:background="?android:attr/selectableItemBackground"
    149                             android:contentDescription="@string/volume_notification_mute"
    150                         />
    151 
    152                     <SeekBar android:id="@+id/notification_volume_seekbar"
    153                             android:layout_width="0dip"
    154                             android:layout_height="wrap_content"
    155                             android:layout_weight="1"
    156                             android:paddingTop="2dip"
    157                             android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
    158             </LinearLayout>
    159 
    160         </LinearLayout>
    161 
    162         <TextView
    163                 android:textAppearance="?android:attr/textAppearanceSmall"
    164                 android:layout_width="wrap_content"
    165                 android:layout_height="wrap_content"
    166                 android:layout_marginTop="16dip"
    167                 android:paddingStart="16dip"
    168                 android:layout_gravity="start"
    169                 android:text="@string/volume_alarm_description"
    170             />
    171 
    172         <!-- Used for the alarm volume -->
    173         <LinearLayout
    174                 android:layout_width="match_parent"
    175                 android:layout_height="wrap_content"
    176                 android:paddingStart="8dip"
    177                 android:orientation="horizontal"
    178                 android:gravity="center_vertical">
    179 
    180                 <ImageView android:id="@+id/alarm_mute_button"
    181                         android:layout_width="wrap_content"
    182                         android:layout_height="wrap_content"
    183                         android:padding="16dip"
    184                         android:background="?android:attr/selectableItemBackground"
    185                         android:contentDescription="@string/volume_alarm_mute" />
    186                 <SeekBar android:id="@+id/alarm_volume_seekbar"
    187                         android:layout_width="0dip"
    188                         android:layout_height="wrap_content"
    189                         android:layout_weight="1"
    190                         android:paddingTop="2dip"
    191                         android:layout_marginEnd="@dimen/volume_seekbar_side_margin" />
    192         </LinearLayout>
    193 
    194     </LinearLayout>
    195 
    196 </ScrollView>
    197