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 <!-- extends LinearLayout -->
     18 <com.android.systemui.volume.ZenModePanel xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/zen_mode_panel"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:clipChildren="false" >
     23 
     24     <LinearLayout
     25         android:id="@+id/edit_container"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:background="?android:attr/colorPrimary"
     29         android:clipChildren="false"
     30         android:orientation="vertical">
     31 
     32         <com.android.systemui.volume.SegmentedButtons
     33             android:id="@+id/zen_buttons"
     34             android:background="@drawable/segmented_buttons_background"
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:layout_marginStart="16dp"
     38             android:layout_marginEnd="16dp"
     39             android:layout_marginBottom="8dp" />
     40 
     41         <RelativeLayout
     42             android:id="@+id/zen_introduction"
     43             android:layout_width="match_parent"
     44             android:layout_height="wrap_content"
     45             android:layout_marginStart="16dp"
     46             android:layout_marginEnd="16dp"
     47             android:paddingTop="8dp"
     48             android:paddingBottom="8dp"
     49             android:background="@drawable/zen_introduction_message_background"
     50             android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light">
     51 
     52             <ImageView
     53                 android:id="@+id/zen_introduction_confirm"
     54                 android:layout_width="48dp"
     55                 android:layout_height="48dp"
     56                 android:layout_marginEnd="8dp"
     57                 android:layout_alignParentEnd="true"
     58                 android:background="@drawable/btn_borderless_rect"
     59                 android:clickable="true"
     60                 android:contentDescription="@string/accessibility_desc_close"
     61                 android:scaleType="center"
     62                 android:src="@drawable/ic_close_white_rounded" />
     63 
     64             <TextView
     65                 android:id="@+id/zen_introduction_message"
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:layout_marginTop="12dp"
     69                 android:layout_marginStart="24dp"
     70                 android:textDirection="locale"
     71                 android:lineSpacingMultiplier="1.20029"
     72                 android:layout_toStartOf="@id/zen_introduction_confirm"
     73                 android:textAppearance="@style/TextAppearance.QS.Introduction" />
     74 
     75             <TextView
     76                 android:id="@+id/zen_introduction_customize"
     77                 style="@style/QSBorderlessButton"
     78                 android:layout_width="wrap_content"
     79                 android:layout_height="wrap_content"
     80                 android:layout_alignParentEnd="true"
     81                 android:layout_marginEnd="12dp"
     82                 android:layout_below="@id/zen_introduction_message"
     83                 android:clickable="true"
     84                 android:focusable="true"
     85                 android:text="@string/zen_priority_customize_button"
     86                 android:textAppearance="@style/TextAppearance.QS.DetailButton.White" />
     87 
     88             <View
     89                 android:layout_width="0dp"
     90                 android:layout_height="16dp"
     91                 android:layout_below="@id/zen_introduction_message"
     92                 android:layout_alignParentEnd="true" />
     93 
     94         </RelativeLayout>
     95 
     96         <com.android.systemui.volume.ZenRadioLayout
     97             android:id="@+id/zen_conditions"
     98             android:layout_width="match_parent"
     99             android:layout_height="wrap_content"
    100             android:layout_marginTop="8dp"
    101             android:layout_marginEnd="4dp"
    102             android:layout_marginStart="4dp"
    103             android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding"
    104             android:orientation="horizontal" >
    105             <RadioGroup
    106                 android:id="@+id/zen_radio_buttons"
    107                 android:layout_width="wrap_content"
    108                 android:layout_height="wrap_content" />
    109             <LinearLayout
    110                 android:id="@+id/zen_radio_buttons_content"
    111                 android:layout_width="fill_parent"
    112                 android:layout_height="fill_parent"
    113                 android:orientation="vertical"/>
    114         </com.android.systemui.volume.ZenRadioLayout>
    115 
    116         <TextView
    117             android:id="@+id/zen_alarm_warning"
    118             android:layout_width="match_parent"
    119             android:layout_height="wrap_content"
    120             android:layout_marginStart="18dp"
    121             android:layout_marginEnd="16dp"
    122             android:textDirection="locale"
    123             android:lineSpacingMultiplier="1.20029"
    124             android:textAppearance="@style/TextAppearance.QS.Warning" />
    125     </LinearLayout>
    126 
    127     <LinearLayout
    128         android:id="@android:id/empty"
    129         android:layout_width="match_parent"
    130         android:layout_height="match_parent"
    131         android:layout_gravity="center"
    132         android:background="?android:attr/colorPrimary"
    133         android:gravity="center"
    134         android:orientation="vertical">
    135 
    136         <ImageView
    137             android:id="@android:id/icon"
    138             android:layout_width="56dp"
    139             android:layout_height="56dp"
    140             android:alpha="?android:attr/disabledAlpha"
    141             android:tint="?android:attr/colorForeground" />
    142 
    143         <TextView
    144             android:id="@android:id/title"
    145             android:layout_width="wrap_content"
    146             android:layout_height="wrap_content"
    147             android:layout_marginTop="20dp"
    148             android:textAppearance="@style/TextAppearance.QS.DetailEmpty"/>
    149     </LinearLayout>
    150 
    151     <LinearLayout
    152         android:id="@+id/auto_rule"
    153         android:layout_width="match_parent"
    154         android:layout_height="match_parent"
    155         android:background="?android:attr/colorPrimary"
    156         android:layout_marginStart="16dp"
    157         android:layout_marginEnd="16dp"
    158         android:layout_marginTop="16dp"
    159         android:layout_marginBottom="8dp"
    160         android:orientation="vertical">
    161 
    162         <TextView
    163             android:id="@android:id/title"
    164             android:layout_width="match_parent"
    165             android:layout_height="wrap_content"
    166             android:textAppearance="@style/TextAppearance.QS.DetailItemPrimary"/>
    167 
    168     </LinearLayout>
    169 
    170 </com.android.systemui.volume.ZenModePanel>
    171