Home | History | Annotate | Download | only in layout
      1 <?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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/app_detail"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:paddingTop="4dp"
     22     android:orientation="vertical"
     23     android:visibility="gone">
     24 
     25     <LinearLayout
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content"
     28         android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
     29         android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
     30         android:layout_marginBottom="16dip"
     31         android:orientation="horizontal">
     32 
     33         <ImageView
     34             android:id="@+id/app_icon"
     35             android:layout_width="@android:dimen/app_icon_size"
     36             android:layout_height="@android:dimen/app_icon_size"
     37             android:layout_marginEnd="8dip"
     38             android:scaleType="centerInside"
     39             android:contentDescription="@null" />
     40 
     41         <LinearLayout
     42             android:layout_width="0dip"
     43             android:layout_height="wrap_content"
     44             android:layout_weight="1"
     45             android:layout_marginTop="8dip"
     46             android:orientation="vertical">
     47 
     48             <LinearLayout
     49                 android:id="@+id/app_titles"
     50                 android:layout_width="match_parent"
     51                 android:layout_height="wrap_content"
     52                 android:orientation="vertical"
     53                 android:paddingBottom="4dip"
     54                 android:textAlignment="viewStart" />
     55 
     56             <LinearLayout
     57                 android:layout_width="match_parent"
     58                 android:layout_height="wrap_content">
     59                 <TextView
     60                     android:id="@+id/app_title"
     61                     android:layout_width="0dp"
     62                     android:layout_height="wrap_content"
     63                     android:layout_weight="1"
     64                     android:singleLine="true"
     65                     android:ellipsize="marquee"
     66                     android:text="@string/data_usage_label_foreground"
     67                     android:textAppearance="@android:style/TextAppearance.Material.Body1"
     68                     android:textColor="?android:attr/textColorSecondary"
     69                     android:textAlignment="viewStart" />
     70                 <TextView
     71                     android:id="@+id/app_foreground"
     72                     android:layout_width="wrap_content"
     73                     android:layout_height="wrap_content"
     74                     android:textAppearance="@android:style/TextAppearance.Material.Body1"
     75                     android:textColor="?android:attr/textColorSecondary"
     76                     android:textAlignment="viewEnd" />
     77             </LinearLayout>
     78 
     79             <LinearLayout
     80                 android:layout_width="match_parent"
     81                 android:layout_height="wrap_content">
     82                 <TextView
     83                     android:id="@+id/app_title"
     84                     android:layout_width="0dp"
     85                     android:layout_height="wrap_content"
     86                     android:layout_weight="1"
     87                     android:singleLine="true"
     88                     android:ellipsize="marquee"
     89                     android:text="@string/data_usage_label_background"
     90                     android:textAppearance="@android:style/TextAppearance.Material.Body1"
     91                     android:textColor="?android:attr/textColorSecondary"
     92                     android:textAlignment="viewStart" />
     93                 <TextView
     94                     android:id="@+id/app_background"
     95                     android:layout_width="wrap_content"
     96                     android:layout_height="wrap_content"
     97                     android:textAppearance="@android:style/TextAppearance.Material.Body1"
     98                     android:textColor="?android:attr/textColorSecondary"
     99                     android:textAlignment="viewEnd" />
    100             </LinearLayout>
    101 
    102         </LinearLayout>
    103 
    104     </LinearLayout>
    105 
    106     <LinearLayout
    107         android:layout_width="match_parent"
    108         android:layout_height="wrap_content"
    109         android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
    110         android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
    111         android:layout_marginBottom="16dip"
    112         android:orientation="horizontal">
    113         <Space
    114             android:layout_width="0dp"
    115             android:layout_height="0dp"
    116             android:layout_weight="0.5" />
    117         <Button
    118             android:id="@+id/app_settings"
    119             android:layout_width="0dp"
    120             android:layout_height="wrap_content"
    121             android:layout_weight="0.5"
    122             android:text="@string/data_usage_app_settings" />
    123     </LinearLayout>
    124 
    125     <LinearLayout
    126         android:id="@+id/app_switches"
    127         android:layout_width="match_parent"
    128         android:layout_height="wrap_content"
    129         android:orientation="vertical"
    130         android:showDividers="beginning|middle"
    131         android:divider="?android:attr/listDivider" />
    132 
    133 </LinearLayout>
    134