| <!-- |
| Copyright (C) 2015 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. |
| --> |
| <com.android.systemui.volume.ZenFooter xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:id="@+id/volume_zen_footer" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingBottom="8dp" > <!-- extends LinearLayout --> |
| |
| <View |
| android:id="@+id/zen_embedded_divider" |
| android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:layout_marginBottom="12dp" |
| android:layout_marginTop="8dp" |
| android:background="@color/qs_tile_divider" /> |
| |
| |
| <RelativeLayout |
| android:id="@+id/zen_introduction" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="16dp" |
| android:layout_marginEnd="16dp" |
| android:paddingTop="8dp" |
| android:paddingBottom="8dp" |
| android:background="@drawable/zen_introduction_message_background" |
| android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light"> |
| |
| <ImageView |
| android:id="@+id/zen_introduction_confirm" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:layout_marginEnd="8dp" |
| android:layout_alignParentEnd="true" |
| android:background="@drawable/btn_borderless_rect" |
| android:clickable="true" |
| android:contentDescription="@string/accessibility_desc_close" |
| android:scaleType="center" |
| android:src="@drawable/ic_close_white_rounded" /> |
| |
| <TextView |
| android:id="@+id/zen_introduction_message" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dp" |
| android:layout_marginStart="24dp" |
| android:textDirection="locale" |
| android:lineSpacingMultiplier="1.20029" |
| android:layout_toStartOf="@id/zen_introduction_confirm" |
| android:text="@string/zen_alarms_introduction" |
| android:textAppearance="@style/TextAppearance.QS.Introduction" /> |
| |
| <View |
| android:layout_width="0dp" |
| android:layout_height="16dp" |
| android:layout_below="@id/zen_introduction_message" |
| android:layout_alignParentEnd="true" /> |
| |
| </RelativeLayout> |
| |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" > |
| |
| <ImageView |
| android:id="@+id/volume_zen_icon" |
| android:layout_width="@dimen/volume_button_size" |
| android:layout_height="@dimen/volume_button_size" |
| android:layout_marginEnd="7dp" |
| android:scaleType="center" /> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/volume_zen_summary_line_1" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textDirection="locale" |
| android:textAppearance="@style/TextAppearance.Volume.ZenSummary" /> |
| |
| <TextView |
| android:id="@+id/volume_zen_summary_line_2" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="1dp" |
| android:textDirection="locale" |
| android:textAppearance="@style/TextAppearance.Volume.ZenDetail" /> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/volume_zen_end_now" |
| style="@style/QSBorderlessButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="end" |
| android:layout_marginEnd="8dp" |
| android:clickable="true" |
| android:focusable="true" |
| android:paddingStart="15dp" |
| android:paddingEnd="15dp" |
| android:text="@string/volume_zen_end_now" |
| android:textColor="?android:attr/colorAccent" |
| android:textAppearance="@style/TextAppearance.QS.DetailButton" /> |
| |
| </com.android.systemui.volume.ZenFooter> |