1<!--
2     Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<com.android.systemui.volume.ZenFooter xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:tools="http://schemas.android.com/tools"
18    android:id="@+id/volume_zen_footer"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical" > <!-- extends LinearLayout -->
22
23    <View
24        android:id="@+id/zen_embedded_divider"
25        android:layout_width="match_parent"
26        android:layout_height="1dp"
27        android:layout_marginBottom="12dp"
28        android:layout_marginTop="8dp"
29        android:background="@color/qs_tile_divider" />
30
31    <LinearLayout
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:gravity="center_vertical"
35        android:orientation="horizontal" >
36
37        <ImageView
38            android:id="@+id/volume_zen_icon"
39            android:layout_width="@dimen/volume_button_size"
40            android:layout_height="@dimen/volume_button_size"
41            android:layout_marginEnd="7dp"
42            android:scaleType="center" />
43
44        <LinearLayout
45            android:layout_width="0dp"
46            android:layout_height="wrap_content"
47            android:layout_weight="1"
48            android:orientation="vertical" >
49
50            <TextView
51                android:id="@+id/volume_zen_summary_line_1"
52                android:layout_width="match_parent"
53                android:layout_height="wrap_content"
54                android:textDirection="locale"
55                android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
56
57            <TextView
58                android:id="@+id/volume_zen_summary_line_2"
59                android:layout_width="match_parent"
60                android:layout_height="wrap_content"
61                android:layout_marginTop="1dp"
62                android:textDirection="locale"
63                android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
64
65        </LinearLayout>
66
67    </LinearLayout>
68
69    <TextView
70        android:id="@+id/volume_zen_end_now"
71        style="@style/QSBorderlessButton"
72        android:layout_width="wrap_content"
73        android:layout_height="wrap_content"
74        android:layout_gravity="end"
75        android:layout_marginEnd="8dp"
76        android:clickable="true"
77        android:focusable="true"
78        android:paddingStart="15dp"
79        android:paddingEnd="15dp"
80        android:text="@string/volume_zen_end_now"
81        android:textColor="@color/system_accent_color"
82        android:textAppearance="@style/TextAppearance.QS.DetailButton" />
83
84</com.android.systemui.volume.ZenFooter>