Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2008, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License");
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 <ScrollView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:clipToPadding="false"
     24     android:scrollbarStyle="@integer/preference_scrollbar_style">
     25 
     26     <LinearLayout
     27         android:id="@+id/all_details"
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:paddingBottom="5dip"
     31         android:orientation="vertical">
     32 
     33         <!-- App snippet with buttons -->
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:layout_gravity="center_vertical"
     38             android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     39             android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     40             android:orientation="vertical">
     41 
     42             <!-- Application snippet label, version and icon -->
     43             <include
     44                 layout="@layout/manage_applications_item"
     45                 android:id="@+id/app_snippet" />
     46 
     47             <!-- Force stop and uninstall buttons -->
     48             <include
     49                 layout="@layout/two_buttons_panel"
     50                 android:id="@+id/control_buttons_panel"/>
     51 
     52             <!-- Force stop and uninstall buttons -->
     53             <include
     54                 layout="@layout/two_buttons_panel"
     55                 android:id="@+id/more_control_buttons_panel"/>
     56 
     57             <!-- Ban notifications for this package -->
     58             <CheckBox android:id="@+id/notification_switch"
     59                 android:layout_width="wrap_content"
     60                 android:layout_height="wrap_content"
     61                 android:layout_gravity="start"
     62                 android:layout_marginTop="4dip"
     63                 android:text="@string/app_notifications_switch_label" />
     64 
     65         </LinearLayout>
     66 
     67         <TextView
     68             style="?android:attr/listSeparatorTextViewStyle"
     69             android:layout_marginTop="8dip"
     70             android:text="@string/storage_label" />
     71 
     72         <LinearLayout
     73             android:layout_width="match_parent"
     74             android:layout_height="wrap_content"
     75             android:orientation="vertical"
     76             android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     77             android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
     78             <LinearLayout
     79                 android:layout_width="match_parent"
     80                 android:layout_height="wrap_content"
     81                 android:orientation="horizontal"
     82                 android:baselineAligned="true"
     83                 android:paddingTop="-1dip">
     84                 <TextView
     85                     android:id="@+id/total_size_prefix"
     86                     android:text="@string/total_size_label"
     87                     android:textAppearance="?android:attr/textAppearanceMedium"
     88                     android:layout_height="wrap_content"
     89                     android:layout_width="wrap_content"
     90                     android:maxLines="1"
     91                     android:paddingTop="6dip" />
     92                 <ImageView
     93                     android:id="@+id/info_size_dots"
     94                     android:src="@drawable/dotted_line_480px"
     95                     android:layout_width="0dip"
     96                     android:layout_weight="1"
     97                     android:layout_height="1px"
     98                     android:layout_gravity="bottom"
     99                     android:layout_marginStart="1dip"
    100                     android:layout_marginEnd="1dip"
    101                     android:layout_marginBottom="4dip"
    102                     android:scaleType="center"
    103                     android:contentDescription="@null" />
    104                 <TextView
    105                     android:id="@+id/total_size_text"
    106                     android:paddingTop="6dip"
    107                     android:textAppearance="?android:attr/textAppearanceMedium"
    108                     android:layout_height="wrap_content"
    109                     android:layout_width="wrap_content"
    110                     android:maxLines="1" />
    111             </LinearLayout>
    112 
    113             <LinearLayout
    114                 android:layout_width="match_parent"
    115                 android:layout_height="wrap_content"
    116                 android:orientation="horizontal"
    117                 android:baselineAligned="true"
    118                 android:paddingTop="-1dip">
    119                 <TextView
    120                     android:id="@+id/application_size_prefix"
    121                     android:text="@string/application_size_label"
    122                     android:textAppearance="?android:attr/textAppearanceMedium"
    123                     android:layout_height="wrap_content"
    124                     android:layout_width="wrap_content"
    125                     android:maxLines="1"
    126                     android:paddingTop="6dip" />
    127                 <ImageView
    128                     android:id="@+id/info_size_dots"
    129                     android:src="@drawable/dotted_line_480px"
    130                     android:layout_width="0dip"
    131                     android:layout_weight="1"
    132                     android:layout_height="1px"
    133                     android:layout_gravity="bottom"
    134                     android:layout_marginStart="1dip"
    135                     android:layout_marginEnd="1dip"
    136                     android:layout_marginBottom="4dip"
    137                     android:scaleType="center"
    138                     android:contentDescription="@null" />
    139                 <TextView
    140                     android:id="@+id/application_size_text"
    141                     android:textAppearance="?android:attr/textAppearanceMedium"
    142                     android:paddingTop="6dip"
    143                     android:layout_height="wrap_content"
    144                     android:layout_width="wrap_content"
    145                     android:maxLines="1" />
    146             </LinearLayout>
    147 
    148             <LinearLayout
    149                 android:layout_width="match_parent"
    150                 android:layout_height="wrap_content"
    151                 android:orientation="horizontal"
    152                 android:baselineAligned="true"
    153                 android:paddingTop="-1dip">
    154                 <TextView
    155                     android:id="@+id/external_code_size_prefix"
    156                     android:text="@string/external_code_size_label"
    157                     android:textAppearance="?android:attr/textAppearanceMedium"
    158                     android:layout_height="wrap_content"
    159                     android:layout_width="wrap_content"
    160                     android:maxLines="1"
    161                     android:paddingTop="6dip" />
    162                 <ImageView
    163                     android:id="@+id/info_size_dots"
    164                     android:src="@drawable/dotted_line_480px"
    165                     android:layout_width="0dip"
    166                     android:layout_weight="1"
    167                     android:layout_height="1px"
    168                     android:layout_gravity="bottom"
    169                     android:layout_marginStart="1dip"
    170                     android:layout_marginEnd="1dip"
    171                     android:layout_marginBottom="4dip"
    172                     android:scaleType="center"
    173                     android:contentDescription="@null" />
    174                 <TextView
    175                     android:id="@+id/external_code_size_text"
    176                     android:textAppearance="?android:attr/textAppearanceMedium"
    177                     android:paddingTop="6dip"
    178                     android:layout_height="wrap_content"
    179                     android:layout_width="wrap_content"
    180                     android:maxLines="1" />
    181             </LinearLayout>
    182 
    183             <LinearLayout
    184                 android:id="@+id/info_size"
    185                 android:layout_width="match_parent"
    186                 android:layout_height="wrap_content"
    187                 android:orientation="horizontal"
    188                 android:baselineAligned="true"
    189                 android:paddingTop="-1dip">
    190                 <TextView
    191                     android:id="@+id/data_size_prefix"
    192                     android:text="@string/data_size_label"
    193                     android:textAppearance="?android:attr/textAppearanceMedium"
    194                     android:layout_height="wrap_content"
    195                     android:layout_width="wrap_content"
    196                     android:maxLines="1"
    197                     android:paddingTop="6dip" />
    198                 <ImageView
    199                     android:id="@+id/info_size_dots"
    200                     android:src="@drawable/dotted_line_480px"
    201                     android:layout_width="0dip"
    202                     android:layout_weight="1"
    203                     android:layout_height="1px"
    204                     android:layout_gravity="bottom"
    205                     android:layout_marginStart="1dip"
    206                     android:layout_marginEnd="1dip"
    207                     android:layout_marginBottom="4dip"
    208                     android:scaleType="center"
    209                     android:contentDescription="@null" />
    210                 <TextView
    211                     android:id="@+id/data_size_text"
    212                     android:textAppearance="?android:attr/textAppearanceMedium"
    213                     android:paddingTop="6dip"
    214                     android:layout_height="wrap_content"
    215                     android:layout_width="wrap_content"
    216                     android:maxLines="1" />
    217             </LinearLayout>
    218 
    219             <LinearLayout
    220                 android:layout_width="match_parent"
    221                 android:layout_height="wrap_content"
    222                 android:orientation="horizontal"
    223                 android:baselineAligned="true"
    224                 android:paddingTop="-1dip">
    225                 <TextView
    226                     android:id="@+id/external_data_size_prefix"
    227                     android:text="@string/external_data_size_label"
    228                     android:textAppearance="?android:attr/textAppearanceMedium"
    229                     android:layout_height="wrap_content"
    230                     android:layout_width="wrap_content"
    231                     android:maxLines="1"
    232                     android:paddingTop="6dip" />
    233                 <ImageView
    234                     android:id="@+id/info_size_dots"
    235                     android:src="@drawable/dotted_line_480px"
    236                     android:layout_width="0dip"
    237                     android:layout_weight="1"
    238                     android:layout_height="1px"
    239                     android:layout_gravity="bottom"
    240                     android:layout_marginStart="1dip"
    241                     android:layout_marginEnd="1dip"
    242                     android:layout_marginBottom="4dip"
    243                     android:scaleType="center"
    244                     android:contentDescription="@null" />
    245                 <TextView
    246                     android:id="@+id/external_data_size_text"
    247                     android:textAppearance="?android:attr/textAppearanceMedium"
    248                     android:paddingTop="6dip"
    249                     android:layout_height="wrap_content"
    250                     android:layout_width="wrap_content"
    251                     android:maxLines="1" />
    252             </LinearLayout>
    253 
    254             <!-- Clear data and install location buttons  -->
    255             <include
    256                 layout="@layout/two_buttons_panel"
    257                 android:id="@+id/data_buttons_panel"/>
    258 
    259         </LinearLayout>
    260 
    261         <!-- Clear cache section -->
    262         <RelativeLayout
    263             android:id="@+id/cache_panel"
    264             android:layout_width="match_parent"
    265             android:layout_height="wrap_content" >
    266             <TextView
    267                 android:id="@+id/cache_header"
    268                 style="?android:attr/listSeparatorTextViewStyle"
    269                 android:layout_marginTop="8dip"
    270                 android:text="@string/cache_header_label" />
    271             <LinearLayout
    272                 android:id="@+id/cache_size"
    273                 android:layout_width="match_parent"
    274                 android:layout_height="wrap_content"
    275                 android:orientation="horizontal"
    276                 android:baselineAligned="true"
    277                 android:layout_below="@id/cache_header"
    278                 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    279                 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    280                 android:paddingTop="-1dip">
    281                 <TextView
    282                     android:text="@string/cache_size_label"
    283                     android:layout_height="wrap_content"
    284                     android:layout_width="wrap_content"
    285                     android:maxLines="1"
    286                     android:textAppearance="?android:attr/textAppearanceMedium"
    287                     android:paddingTop="6dip"
    288                     android:gravity="center_vertical" />
    289                 <ImageView
    290                     android:src="@drawable/dotted_line_480px"
    291                     android:layout_width="0dip"
    292                     android:layout_weight="1"
    293                     android:layout_height="1px"
    294                     android:layout_gravity="bottom"
    295                     android:layout_marginStart="1dip"
    296                     android:layout_marginEnd="1dip"
    297                     android:layout_marginBottom="4dip"
    298                     android:scaleType="center"
    299                     android:contentDescription="@null" />
    300                 <TextView
    301                     android:id="@+id/cache_size_text"
    302                     android:textAppearance="?android:attr/textAppearanceMedium"
    303                     android:paddingTop="6dip"
    304                     android:layout_height="wrap_content"
    305                     android:layout_width="wrap_content"
    306                     android:maxLines="1" />
    307             </LinearLayout>
    308 
    309             <LinearLayout
    310                 android:layout_width="match_parent"
    311                 android:layout_height="wrap_content"
    312                 android:layout_below="@id/cache_size"
    313                 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    314                 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    315                 android:paddingTop="4dip"
    316                 android:orientation="horizontal">
    317                 <View
    318                     android:layout_width="120dip"
    319                     android:layout_height="0dip"
    320                     android:layout_weight="0.4" />
    321                 <View
    322                     android:layout_width="0dip"
    323                     android:layout_height="0dip"
    324                     android:visibility="invisible"
    325                     android:layout_weight="0.2" />
    326                 <Button
    327                     android:id="@+id/clear_cache_button"
    328                     android:layout_width="120dip"
    329                     android:layout_height="wrap_content"
    330                     android:layout_weight="0.4"
    331                     android:text="@string/clear_cache_btn_text" />
    332             </LinearLayout>
    333 
    334         </RelativeLayout>
    335 
    336         <!-- Prefered activities section -->
    337         <TextView android:id="@+id/auto_launch_title"
    338             style="?android:attr/listSeparatorTextViewStyle"
    339             android:layout_marginTop="8dip"
    340             android:text="@string/auto_launch_label" />
    341 
    342         <RelativeLayout 
    343             android:layout_width="match_parent"
    344             android:layout_height="wrap_content"
    345             android:layout_gravity="center_vertical"
    346             android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    347             android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
    348             <TextView android:id="@+id/auto_launch"
    349                 android:textAppearance="?android:attr/textAppearanceSmall"
    350                 android:layout_alignParentStart="true"
    351                 android:layout_width="match_parent"
    352                 android:layout_height="wrap_content"
    353                 android:paddingTop="6dip" />
    354 
    355             <LinearLayout
    356                 android:layout_width="match_parent"
    357                 android:layout_height="wrap_content"
    358                 android:layout_below="@id/auto_launch"
    359                 android:paddingTop="4dip"
    360                 android:orientation="horizontal">
    361                 <View
    362                     android:layout_width="120dip"
    363                     android:layout_height="0dip"
    364                     android:layout_weight="0.4" />
    365                 <View
    366                     android:layout_width="0dip"
    367                     android:layout_height="0dip"
    368                     android:visibility="invisible"
    369                     android:layout_weight="0.2" />
    370                 <Button
    371                     android:id="@+id/clear_activities_button"
    372                     android:layout_width="120dip"
    373                     android:layout_height="wrap_content"
    374                     android:layout_weight="0.4"
    375                     android:text="@string/clear_activities" />
    376             </LinearLayout>
    377         </RelativeLayout>
    378 
    379         <!-- Screen compatibility section -->
    380         <LinearLayout android:id="@+id/screen_compatibility_section"
    381                 android:layout_width="match_parent"
    382                 android:layout_height="wrap_content"
    383                 android:orientation="vertical">
    384             <TextView
    385                 style="?android:attr/listSeparatorTextViewStyle"
    386                 android:layout_marginTop="8dip"
    387                 android:text="@string/screen_compatibility_label" />
    388 
    389             <TextView android:textAppearance="?android:attr/textAppearanceSmall"
    390                 android:layout_alignParentStart="true"
    391                 android:layout_width="match_parent"
    392                 android:layout_height="wrap_content"
    393                 android:paddingTop="6dip"
    394                 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    395                 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    396                 android:text="@string/screen_compatibility_text"/>
    397             <CheckBox android:id="@+id/ask_compatibility_cb"
    398                 android:layout_width="wrap_content"
    399                 android:layout_height="wrap_content"
    400                 android:layout_marginStart="12dip"
    401                 android:layout_gravity="start"
    402                 android:text="@string/ask_compatibility" />
    403             <CheckBox android:id="@+id/enable_compatibility_cb"
    404                 android:layout_width="wrap_content"
    405                 android:layout_height="wrap_content"
    406                 android:layout_marginStart="12dip"
    407                 android:layout_gravity="start"
    408                 android:text="@string/enable_compatibility" />
    409         </LinearLayout>
    410 
    411         <!-- Permissions section -->
    412         <LinearLayout
    413             android:id="@+id/permissions_section"
    414             android:layout_width="match_parent"
    415             android:layout_height="match_parent"
    416             android:orientation="vertical">
    417             <TextView
    418                 style="?android:attr/listSeparatorTextViewStyle"
    419                 android:layout_marginTop="8dip"
    420                 android:text="@string/permissions_label" />
    421             <TextView android:id="@+id/security_settings_billing_desc"
    422                 android:text="@string/security_settings_billing_desc"
    423                 android:textColor="#ffffb060"
    424                 android:textAppearance="?android:attr/textAppearanceSmall"
    425                 android:paddingTop="6dip"
    426                 android:paddingBottom="6dip"
    427                 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    428                 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    429                 android:layout_width="match_parent"
    430                 android:layout_height="wrap_content" />
    431             <LinearLayout
    432                 android:id="@+id/security_settings_billing_list"
    433                 android:layout_width="match_parent"
    434                 android:layout_height="match_parent"
    435                 android:orientation="vertical">
    436                 <TextView
    437                     android:layout_width="wrap_content"
    438                     android:layout_height="wrap_content"
    439                     android:text="@string/security_settings_premium_sms_desc" />
    440                 <Spinner
    441                     android:id="@+id/security_settings_premium_sms_list"
    442                     android:layout_width="fill_parent"
    443                     android:layout_height="wrap_content"
    444                     android:spinnerMode="dropdown" />
    445             </LinearLayout>
    446             <TextView android:id="@+id/security_settings_desc"
    447                 android:text="@string/security_settings_desc"
    448                 android:textAppearance="?android:attr/textAppearanceSmall"
    449                 android:paddingTop="6dip"
    450                 android:paddingBottom="6dip"
    451                 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    452                 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    453                 android:layout_width="match_parent"
    454                 android:layout_height="wrap_content" />
    455             <LinearLayout
    456                 android:id="@+id/security_settings_list"
    457                 android:layout_width="match_parent"
    458                 android:layout_height="match_parent"
    459                 android:orientation="vertical"/>
    460         </LinearLayout>
    461     </LinearLayout>
    462 </ScrollView>
    463 
    464