John Spurlock | 8600534 | 2014-05-23 11:58:00 -0400 | [diff] [blame] | 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="wrap_content" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 22 | android:clipChildren="false" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 23 | android:orientation="vertical" > |
John Spurlock | 8600534 | 2014-05-23 11:58:00 -0400 | [diff] [blame] | 24 | |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 25 | <FrameLayout |
John Spurlock | 8600534 | 2014-05-23 11:58:00 -0400 | [diff] [blame] | 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="wrap_content" |
John Spurlock | bb4a702 | 2014-11-08 12:40:19 -0500 | [diff] [blame] | 28 | android:minHeight="8dp" |
John Spurlock | 4f558f7 | 2014-07-20 11:50:35 -0400 | [diff] [blame] | 29 | android:elevation="4dp" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 30 | android:background="@drawable/qs_background_secondary" > |
| 31 | |
| 32 | <com.android.systemui.volume.SegmentedButtons |
| 33 | android:id="@+id/zen_buttons" |
| 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="wrap_content" |
John Spurlock | bb4a702 | 2014-11-08 12:40:19 -0500 | [diff] [blame] | 36 | android:layout_marginLeft="8dp" |
| 37 | android:layout_marginRight="8dp" |
John Spurlock | 4e3eb1a | 2014-08-20 15:54:19 -0400 | [diff] [blame] | 38 | android:layout_marginBottom="8dp" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 39 | android:clipChildren="false" /> |
| 40 | </FrameLayout> |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 41 | |
PauloftheWest | 2cabb42 | 2014-09-16 10:29:51 -0700 | [diff] [blame] | 42 | <RelativeLayout |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 43 | android:id="@+id/zen_subhead" |
| 44 | android:layout_width="match_parent" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 45 | android:layout_height="62dp" |
John Spurlock | 27c7b92 | 2014-09-23 14:59:51 -0400 | [diff] [blame] | 46 | android:gravity="center_vertical" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 47 | android:paddingLeft="8dp" |
| 48 | android:paddingRight="8dp" > |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 49 | |
| 50 | <TextView |
| 51 | android:id="@+id/zen_subhead_collapsed" |
| 52 | android:layout_width="wrap_content" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 53 | android:layout_height="48dp" |
| 54 | android:layout_gravity="center_vertical" |
| 55 | android:gravity="center_vertical" |
| 56 | android:paddingLeft="8dp" |
John Spurlock | 4f558f7 | 2014-07-20 11:50:35 -0400 | [diff] [blame] | 57 | android:paddingRight="4dp" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 58 | android:background="@drawable/btn_borderless_rect" |
| 59 | android:clickable="true" |
| 60 | android:drawableEnd="@drawable/qs_subhead_caret" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 61 | android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| 62 | |
| 63 | <TextView |
| 64 | android:id="@+id/zen_subhead_expanded" |
| 65 | android:layout_width="wrap_content" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 66 | android:layout_height="48dp" |
| 67 | android:layout_gravity="center_vertical" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 68 | android:gravity="center_vertical" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 69 | android:paddingLeft="8dp" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 70 | android:textAppearance="@style/TextAppearance.QS.Subhead" /> |
| 71 | |
| 72 | <ImageView |
| 73 | android:id="@+id/zen_more_settings" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 74 | android:layout_width="48dp" |
| 75 | android:layout_height="48dp" |
PauloftheWest | 2cabb42 | 2014-09-16 10:29:51 -0700 | [diff] [blame] | 76 | android:layout_alignParentEnd="true" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 77 | android:background="@drawable/btn_borderless_rect" |
| 78 | android:clickable="true" |
John Spurlock | b753372 | 2014-09-22 15:14:48 -0400 | [diff] [blame] | 79 | android:contentDescription="@string/accessibility_desc_settings" |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 80 | android:scaleType="center" |
Dan Sandler | e9a4e90 | 2014-07-31 01:06:43 -0400 | [diff] [blame] | 81 | android:src="@drawable/ic_settings" /> |
PauloftheWest | 2cabb42 | 2014-09-16 10:29:51 -0700 | [diff] [blame] | 82 | |
| 83 | </RelativeLayout> |
John Spurlock | ae641c9 | 2014-06-30 18:11:40 -0400 | [diff] [blame] | 84 | |
| 85 | <LinearLayout |
| 86 | android:id="@+id/zen_conditions" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:orientation="vertical" |
John Spurlock | eb2727b | 2014-07-19 23:11:36 -0400 | [diff] [blame] | 90 | android:paddingBottom="@dimen/qs_panel_padding" /> |
John Spurlock | 8600534 | 2014-05-23 11:58:00 -0400 | [diff] [blame] | 91 | |
Dan Sandler | e9a4e90 | 2014-07-31 01:06:43 -0400 | [diff] [blame] | 92 | </com.android.systemui.volume.ZenModePanel> |