• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
22    android:paddingBottom="8dp" > <!-- extends LinearLayout -->
23
24    <View
25        android:id="@+id/zen_embedded_divider"
26        android:layout_width="match_parent"
27        android:layout_height="1dp"
28        android:layout_marginBottom="12dp"
29        android:layout_marginTop="8dp"
30        android:background="@color/qs_tile_divider" />
31
32    <LinearLayout
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:gravity="center_vertical"
36        android:orientation="horizontal" >
37
38        <ImageView
39            android:id="@+id/volume_zen_icon"
40            android:layout_width="@dimen/volume_button_size"
41            android:layout_height="@dimen/volume_button_size"
42            android:layout_marginEnd="7dp"
43            android:scaleType="center" />
44
45        <LinearLayout
46            android:layout_width="0dp"
47            android:layout_height="wrap_content"
48            android:layout_weight="1"
49            android:orientation="vertical" >
50
51            <TextView
52                android:id="@+id/volume_zen_summary_line_1"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:textDirection="locale"
56                android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
57
58            <TextView
59                android:id="@+id/volume_zen_summary_line_2"
60                android:layout_width="match_parent"
61                android:layout_height="wrap_content"
62                android:layout_marginTop="1dp"
63                android:textDirection="locale"
64                android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
65
66        </LinearLayout>
67
68    </LinearLayout>
69
70    <TextView
71        android:id="@+id/volume_zen_end_now"
72        style="@style/QSBorderlessButton"
73        android:layout_width="wrap_content"
74        android:layout_height="wrap_content"
75        android:layout_gravity="end"
76        android:layout_marginEnd="8dp"
77        android:clickable="true"
78        android:focusable="true"
79        android:paddingStart="15dp"
80        android:paddingEnd="15dp"
81        android:text="@string/volume_zen_end_now"
82        android:textColor="?android:attr/colorAccent"
83        android:textAppearance="@style/TextAppearance.QS.DetailButton" />
84
85</com.android.systemui.volume.ZenFooter>