Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2017 The Android Open Source Project
      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
     18         xmlns:android="http://schemas.android.com/apk/res/android"
     19         xmlns:settings="http://schemas.android.com/apk/res-auto"
     20         android:layout_width="match_parent"
     21         android:layout_height="wrap_content"
     22         android:paddingTop="8dp"
     23         android:paddingBottom="8dp"
     24         android:paddingStart="@dimen/preference_no_icon_padding_start"
     25         android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     26         android:orientation="horizontal">
     27 
     28     <!-- Shows the data plan usage in chart -->
     29     <com.android.settings.widget.DonutView
     30             android:id="@+id/donut"
     31             android:layout_width="72dp"
     32             android:layout_height="72dp"
     33             android:layout_marginEnd="8dp"
     34             android:layout_gravity="center"
     35             android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     36             android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     37             android:gravity="end|center_vertical"
     38             settings:applyColorAccent="false"
     39             settings:showPercentString="false"
     40             settings:thickness="6dp"/>
     41 
     42     <LinearLayout
     43             android:id="@+id/data_plan_row"
     44             android:layout_width="match_parent"
     45             android:layout_height="wrap_content"
     46             android:paddingTop="2dp"
     47             android:orientation="vertical">
     48 
     49         <!-- Shows the data plan usage -->
     50         <TextView
     51                 android:id="@android:id/title"
     52                 android:layout_width="match_parent"
     53                 android:layout_height="wrap_content"
     54                 android:layout_marginTop="0dp"
     55                 android:paddingTop="0dp"
     56                 android:fontFamily="@*android:string/config_headlineFontFamily"
     57                 android:textAppearance="@android:style/TextAppearance.Material.Title"/>
     58 
     59         <!-- Shows the data plan name -->
     60         <TextView
     61                 android:id="@android:id/text1"
     62                 android:layout_width="match_parent"
     63                 android:layout_height="wrap_content"
     64                 android:paddingBottom="5dp"
     65                 android:maxLines="3"
     66                 android:textAppearance="@android:style/TextAppearance.Material.Subhead"
     67                 android:textColor="?android:attr/textColorSecondary"/>
     68 
     69         <!-- Shows the data plan description -->
     70         <TextView
     71                 android:id="@android:id/text2"
     72                 android:textStyle="italic"
     73                 android:layout_width="wrap_content"
     74                 android:layout_height="wrap_content"
     75                 android:maxLines="5"
     76                 android:textAppearance="@android:style/TextAppearance.Material.Subhead"
     77                 android:textColor="?android:attr/textColorSecondary"/>
     78     </LinearLayout>
     79 </LinearLayout>
     80