Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 <com.android.systemui.qs.tiles.DataUsageDetailView xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="wrap_content"
     20     android:paddingTop="16dp"
     21     android:paddingStart="16dp"
     22     android:paddingEnd="16dp"
     23     android:orientation="vertical" >
     24 
     25     <TextView
     26         android:id="@android:id/title"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content"
     29         android:textAppearance="@style/TextAppearance.QS.DataUsage" />
     30 
     31     <TextView
     32         android:id="@+id/usage_text"
     33         android:layout_width="wrap_content"
     34         android:layout_height="wrap_content"
     35         android:textAppearance="@style/TextAppearance.QS.DataUsage.Usage" />
     36 
     37     <com.android.systemui.qs.DataUsageGraph
     38         android:id="@+id/usage_graph"
     39         android:layout_width="match_parent"
     40         android:layout_height="8dp"
     41         android:layout_marginBottom="@dimen/qs_panel_padding"
     42         android:layout_marginTop="8dp" />
     43 
     44     <LinearLayout
     45         android:layout_width="match_parent"
     46         android:layout_height="wrap_content"
     47         android:orientation="horizontal" >
     48 
     49         <TextView
     50             android:id="@+id/usage_carrier_text"
     51             android:layout_width="0dp"
     52             android:layout_height="wrap_content"
     53             android:layout_weight="1"
     54             android:textAppearance="@style/TextAppearance.QS.DataUsage" />
     55 
     56         <TextView
     57             android:id="@+id/usage_info_top_text"
     58             android:layout_width="0dp"
     59             android:layout_height="wrap_content"
     60             android:layout_weight="1"
     61             android:textAppearance="@style/TextAppearance.QS.DataUsage" />
     62 
     63     </LinearLayout>
     64 
     65     <LinearLayout
     66         android:layout_width="match_parent"
     67         android:layout_height="wrap_content"
     68         android:layout_marginTop="4dp"
     69         android:orientation="horizontal" >
     70 
     71         <TextView
     72             android:id="@+id/usage_period_text"
     73             android:layout_width="0dp"
     74             android:layout_height="wrap_content"
     75             android:layout_weight="1"
     76             android:textAppearance="@style/TextAppearance.QS.DataUsage.Secondary" />
     77 
     78         <TextView
     79             android:id="@+id/usage_info_bottom_text"
     80             android:layout_width="0dp"
     81             android:layout_height="wrap_content"
     82             android:layout_weight="1"
     83             android:textAppearance="@style/TextAppearance.QS.DataUsage.Secondary" />
     84     </LinearLayout>
     85 
     86     <TextView
     87         android:id="@+id/roaming_text"
     88         android:layout_width="wrap_content"
     89         android:layout_height="wrap_content"
     90         android:paddingTop="16dp"
     91         android:text="@string/accessibility_data_connection_roaming"
     92         android:textAppearance="@style/TextAppearance.QS.DataUsage.Secondary"
     93         android:visibility="gone" />
     94 
     95 </com.android.systemui.qs.tiles.DataUsageDetailView>
     96