| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- extends LinearLayout --> |
| <com.android.systemui.volume.ZenModePanel xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/zen_mode_panel" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@drawable/qs_panel_background" |
| android:clipChildren="false" |
| android:orientation="vertical" |
| android:paddingBottom="@dimen/qs_panel_padding" > |
| |
| <com.android.systemui.volume.SegmentedButtons |
| android:id="@+id/zen_buttons" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="@dimen/qs_panel_padding" |
| android:layout_marginRight="@dimen/qs_panel_padding" |
| android:layout_marginTop="8dp" |
| android:background="@drawable/segmented_buttons" |
| android:clipChildren="false" /> |
| |
| <FrameLayout |
| android:id="@+id/zen_subhead" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingLeft="@dimen/qs_panel_padding" |
| android:paddingRight="@dimen/qs_panel_padding" |
| android:paddingTop="@dimen/qs_panel_padding" > |
| |
| <TextView |
| android:id="@+id/zen_subhead_collapsed" |
| android:layout_width="wrap_content" |
| android:layout_height="32dp" |
| android:background="@drawable/btn_borderless_rect" |
| android:clickable="true" |
| android:drawableEnd="@drawable/qs_subhead_caret" |
| android:gravity="center_vertical" |
| android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| |
| <TextView |
| android:id="@+id/zen_subhead_expanded" |
| android:layout_width="wrap_content" |
| android:layout_height="32dp" |
| android:clickable="true" |
| android:gravity="center_vertical" |
| android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| |
| <ImageView |
| android:id="@+id/zen_more_settings" |
| android:layout_width="32dp" |
| android:layout_height="32dp" |
| android:layout_gravity="end" |
| android:background="@drawable/btn_borderless_rect" |
| android:clickable="true" |
| android:contentDescription="@null" |
| android:scaleType="center" |
| android:src="@drawable/ic_settings_24dp" /> |
| </FrameLayout> |
| |
| <LinearLayout |
| android:id="@+id/zen_conditions" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingTop="3dp" /> |
| |
| <TextView |
| android:id="@+id/zen_alarm_warning" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingBottom="8dp" |
| android:paddingLeft="@dimen/qs_panel_padding" |
| android:paddingRight="@dimen/qs_panel_padding" |
| android:paddingTop="8dp" |
| android:text="@string/zen_alarm_warning" |
| android:textAppearance="@style/TextAppearance.QS.Warning" /> |
| |
| </com.android.systemui.volume.ZenModePanel> |