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   ~
      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 
     18 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:layout_marginStart="@dimen/stream_content_keyline_1"
     23     android:layout_marginEnd="@dimen/stream_content_keyline_1"
     24     android:orientation="vertical">
     25     <RelativeLayout
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content">
     28         <ImageView
     29             android:id="@+id/icon"
     30             android:layout_width="@dimen/dashboard_tile_image_size"
     31             android:layout_height="@dimen/dashboard_tile_image_size"
     32             android:layout_centerVertical="true"
     33             style="@style/SettingIcon"/>
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:orientation="vertical"
     38             android:layout_toEndOf="@+id/icon"
     39             android:layout_centerVertical="true"
     40             android:paddingTop="@dimen/tile_top_bottom_padding"
     41             android:paddingBottom="@dimen/tile_top_bottom_padding">
     42             <TextView
     43                 android:id="@+id/title"
     44                 android:layout_width="match_parent"
     45                 android:layout_height="wrap_content"
     46                 android:textSize="@dimen/medium_text_size"/>
     47             <TextView
     48                 android:id="@+id/desc"
     49                 android:layout_width="match_parent"
     50                 android:layout_height="wrap_content"
     51                 android:textSize="@dimen/small_text_size"
     52                 android:visibility="gone"/>
     53         </LinearLayout>
     54     </RelativeLayout>
     55     <LinearLayout
     56         android:layout_width="match_parent"
     57         android:layout_height="wrap_content"
     58         android:layout_marginBottom="@dimen/tile_top_bottom_padding"
     59         android:orientation="horizontal">
     60         <Button
     61             android:id="@+id/disable_toggle"
     62             android:layout_width="0dp"
     63             android:layout_height="wrap_content"
     64             android:textSize="@dimen/small_text_size"
     65             android:layout_weight="1"/>
     66         <Button
     67             android:id="@+id/force_stop"
     68             android:layout_width="0dp"
     69             android:layout_height="wrap_content"
     70             android:textSize="@dimen/small_text_size"
     71             android:layout_weight="1"
     72             android:text="@string/force_stop"/>
     73     </LinearLayout>
     74     <LinearLayout
     75         android:layout_width="match_parent"
     76         android:layout_height="wrap_content"
     77         android:orientation="vertical">
     78         <LinearLayout
     79             android:id="@+id/permission_container"
     80             android:layout_width="match_parent"
     81             android:layout_height="wrap_content"
     82             android:layout_marginBottom="@dimen/tile_top_bottom_padding"
     83             android:orientation="vertical">
     84             <TextView
     85                 android:layout_width="match_parent"
     86                 android:layout_height="wrap_content"
     87                 android:textSize="@dimen/medium_text_size"
     88                 android:text="@string/permissions_label"/>
     89             <TextView
     90                 android:id="@+id/permission_detail"
     91                 android:layout_width="match_parent"
     92                 android:layout_height="wrap_content"
     93                 android:textSize="@dimen/small_text_size"
     94                 android:text="@string/computing_size"/>
     95         </LinearLayout>
     96         <LinearLayout
     97             android:layout_width="match_parent"
     98             android:layout_height="wrap_content"
     99             android:layout_marginBottom="@dimen/tile_top_bottom_padding"
    100             android:orientation="vertical">
    101             <TextView
    102                 android:layout_width="match_parent"
    103                 android:layout_height="wrap_content"
    104                 android:textSize="@dimen/medium_text_size"
    105                 android:text="@string/data_usage_summary_title"/>
    106             <TextView
    107                 android:id="@+id/data_usage_summary"
    108                 android:layout_width="match_parent"
    109                 android:layout_height="wrap_content"
    110                 android:textSize="@dimen/small_text_size"
    111                 android:text="@string/computing_size"/>
    112         </LinearLayout>
    113     </LinearLayout>
    114 </LinearLayout>