- Add a rounded rect background to the segmented buttons. - Remove the spacing between the segmented buttons. - Increase the minheight + font weight of the button text. - Remove the embedded divider line. - Add a rounded rect background to the intro messages. - Tweak margins, mostly 8dp -> 16dp in a few places. Bug: 20949290 Bug: 20947407 Change-Id: Ic497c772aa7228423c8884d6ec7b9ccbfdda365a
100 lines
4.0 KiB
XML
100 lines
4.0 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.
|
|
-->
|
|
<!-- 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" >
|
|
|
|
<com.android.systemui.volume.SegmentedButtons
|
|
android:id="@+id/zen_buttons"
|
|
android:background="@drawable/segmented_buttons_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp" />
|
|
|
|
<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" >
|
|
|
|
<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"
|
|
android:tint="@android:color/white" />
|
|
|
|
<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:lineSpacingMultiplier="1.20029"
|
|
android:layout_toStartOf="@id/zen_introduction_confirm"
|
|
android:textAppearance="@style/TextAppearance.QS.Introduction" />
|
|
|
|
<TextView
|
|
android:id="@+id/zen_introduction_customize"
|
|
style="@style/QSBorderlessButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_below="@id/zen_introduction_message"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:text="@string/zen_priority_customize_button"
|
|
android:textAppearance="@style/TextAppearance.QS.DetailButton.White" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="16dp"
|
|
android:layout_below="@id/zen_introduction_message"
|
|
android:layout_alignParentEnd="true" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/zen_conditions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginStart="4dp"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" />
|
|
|
|
</com.android.systemui.volume.ZenModePanel>
|