| <?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:clipChildren="false" |
| android:orientation="vertical" > |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:minHeight="12dp" |
| android:elevation="4dp" |
| android:background="@drawable/qs_background_secondary" > |
| |
| <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="4dp" |
| android:layout_marginBottom="8dp" |
| android:clipChildren="false" /> |
| </FrameLayout> |
| |
| <FrameLayout |
| android:id="@+id/zen_subhead" |
| android:layout_width="match_parent" |
| android:layout_height="62dp" |
| android:paddingLeft="8dp" |
| android:paddingRight="8dp" > |
| |
| <TextView |
| android:id="@+id/zen_subhead_collapsed" |
| android:layout_width="wrap_content" |
| android:layout_height="48dp" |
| android:layout_gravity="center_vertical" |
| android:gravity="center_vertical" |
| android:paddingLeft="8dp" |
| android:paddingRight="4dp" |
| android:background="@drawable/btn_borderless_rect" |
| android:clickable="true" |
| android:drawableEnd="@drawable/qs_subhead_caret" |
| android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| |
| <TextView |
| android:id="@+id/zen_subhead_expanded" |
| android:layout_width="wrap_content" |
| android:layout_height="48dp" |
| android:layout_gravity="center_vertical" |
| android:gravity="center_vertical" |
| android:paddingLeft="8dp" |
| android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| |
| <ImageView |
| android:id="@+id/zen_more_settings" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:layout_gravity="end|center_vertical" |
| android:background="@drawable/btn_borderless_rect" |
| android:clickable="true" |
| android:contentDescription="@null" |
| android:scaleType="center" |
| android:src="@drawable/ic_settings" /> |
| </FrameLayout> |
| |
| <LinearLayout |
| android:id="@+id/zen_conditions" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingBottom="@dimen/qs_panel_padding" /> |
| |
| </com.android.systemui.volume.ZenModePanel> |