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