If the user selects a new zen mode, display a quick toast with the mode icon + text to aid in association. Also fix a recent regression in the zen subhead alignment. Bug:16215680 Bug:17641211 Change-Id: I4ead88d81be4d9c26459aed82c47b8c2fb32eafa
42 lines
1.5 KiB
XML
42 lines
1.5 KiB
XML
<?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.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/zen_toast_background"
|
|
android:translationZ="@dimen/volume_panel_z"
|
|
android:padding="18dp"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical" >
|
|
|
|
<ImageView
|
|
android:id="@android:id/icon"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:scaleType="center" />
|
|
|
|
<TextView
|
|
android:id="@android:id/message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:lineSpacingExtra="4dp"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="@style/TextAppearance.QS.ZenToast" />
|
|
|
|
</LinearLayout>
|