• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2014, The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<com.android.systemui.statusbar.NotificationGuts
19        xmlns:android="http://schemas.android.com/apk/res/android"
20        android:layout_width="match_parent"
21        android:layout_height="wrap_content"
22        android:id="@+id/notification_guts"
23        android:visibility="gone"
24        android:clickable="true"
25        android:gravity="top|start"
26        android:orientation="vertical"
27        android:paddingStart="@*android:dimen/notification_content_margin_start"
28        android:paddingEnd="8dp"
29        android:background="@color/notification_guts_bg_color"
30        android:theme="@*android:style/Theme.DeviceDefault.Light">
31
32    <!-- header -->
33    <LinearLayout
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:paddingTop="15dp"
37            android:paddingEnd="8dp"
38            android:id="@+id/notification_guts_header"
39            android:orientation="horizontal"
40            android:layout_gravity="start">
41
42        <ImageView
43                android:id="@+id/app_icon"
44                android:layout_width="18dp"
45                android:layout_height="18dp"
46                android:layout_marginEnd="6dp"
47                android:src="@android:drawable/arrow_down_float" />
48        <TextView
49                android:id="@+id/pkgname"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content"
52                style="@style/TextAppearance.NotificationGuts.Header" />
53        <TextView
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:id="@+id/debug_info"
57                android:layout_weight="0"
58                style="@style/TextAppearance.NotificationGuts.Header"
59                android:layout_gravity="bottom|start"
60                android:visibility="gone" />
61    </LinearLayout>
62    <!-- Importance radio buttons -->
63    <RadioGroup
64            android:id="@+id/importance_buttons"
65            android:layout_width="match_parent"
66            android:layout_height="wrap_content"
67            android:paddingStart="3dp"
68            android:paddingTop="4dp"
69            android:paddingEnd="8dp" >
70        <RadioButton
71                android:id="@+id/silent_importance"
72                android:layout_width="wrap_content"
73                android:layout_height="40dp"
74                android:paddingStart="22dp"
75                android:text="@string/show_silently"
76                style="@style/TextAppearance.NotificationGuts.Radio"
77                android:buttonTint="@color/notification_guts_buttons" />
78        <RadioButton
79                android:id="@+id/block_importance"
80                android:layout_width="wrap_content"
81                android:layout_height="40dp"
82                android:paddingStart="22dp"
83                android:text="@string/block"
84                style="@style/TextAppearance.NotificationGuts.Radio"
85                android:buttonTint="@color/notification_guts_buttons" />
86        <RadioButton
87                android:id="@+id/reset_importance"
88                android:layout_width="wrap_content"
89                android:layout_height="40dp"
90                android:paddingStart="22dp"
91                style="@style/TextAppearance.NotificationGuts.Radio"
92                android:buttonTint="@color/notification_guts_buttons" />
93    </RadioGroup>
94    <!-- Importance slider -->
95    <LinearLayout
96            android:id="@+id/importance_slider"
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:gravity="center_vertical"
100            android:orientation="vertical"
101            android:clickable="false"
102            android:focusable="false"
103            android:paddingEnd="8dp"
104            android:paddingTop="4dp"
105            android:visibility="gone">
106        <TextView
107                android:id="@+id/title"
108                android:layout_width="match_parent"
109                android:layout_height="wrap_content"
110                android:singleLine="true"
111                style="@style/TextAppearance.NotificationGuts.Primary"
112                android:ellipsize="marquee"
113                android:fadingEdge="horizontal"
114                android:paddingBottom="2dp"/>
115
116        <TextView
117                android:id="@+id/summary"
118                android:layout_width="match_parent"
119                android:layout_height="wrap_content"
120                android:layout_alignStart="@android:id/title"
121                android:textAlignment="viewStart"
122                style="@style/TextAppearance.NotificationGuts.Secondary"
123                android:maxLines="3"
124                android:minLines="2"
125                android:paddingBottom="4dp" />
126
127        <FrameLayout
128                android:layout_width="match_parent"
129                android:layout_height="wrap_content"
130                android:paddingTop="8dp" >
131
132            <ImageView
133                    android:id="@+id/auto_importance"
134                    android:src="@drawable/notification_auto_importance"
135                    android:layout_gravity="center_vertical|start"
136                    android:layout_width="48dp"
137                    android:layout_height="48dp" />
138
139            <SeekBar
140                    android:id="@+id/seekbar"
141                    android:layout_marginStart="56dp"
142                    android:layout_marginEnd="32dp"
143                    android:layout_gravity="center_vertical"
144                    android:layout_width="match_parent"
145                    android:layout_height="48dp"
146                    android:focusable="true"
147                    android:background="#00ffffff"
148                    android:progressBackgroundTint="@color/notification_guts_secondary_slider_color"
149                    android:thumbTint="?android:attr/colorAccent"
150                    android:progressTint="?android:attr/colorAccent"
151                    style="@android:style/Widget.Material.SeekBar.Discrete"
152                    android:tickMarkTint="@android:color/black" />
153
154        </FrameLayout>
155    </LinearLayout>
156    <!-- buttons -->
157    <LinearLayout
158            android:layout_width="match_parent"
159            android:layout_height="wrap_content"
160            android:gravity="end"
161            android:paddingTop="16dp"
162            android:paddingBottom="8dp" >
163
164        <TextView
165            android:id="@+id/more_settings"
166            android:text="@string/notification_more_settings"
167            android:layout_width="wrap_content"
168            android:layout_height="36dp"
169            style="@style/TextAppearance.NotificationGuts.Button"
170            android:background="@drawable/btn_borderless_rect"
171            android:gravity="center"
172            android:paddingEnd="8dp"
173            android:paddingStart="8dp"
174            android:focusable="true" />
175
176        <TextView
177            android:id="@+id/done"
178            android:text="@string/notification_done"
179            android:layout_width="wrap_content"
180            android:layout_height="36dp"
181            style="@style/TextAppearance.NotificationGuts.Button"
182            android:background="@drawable/btn_borderless_rect"
183            android:gravity="center"
184            android:layout_marginStart="8dp"
185            android:layout_marginEnd="8dp"
186            android:focusable="true"/>
187    </LinearLayout>
188</com.android.systemui.statusbar.NotificationGuts>
189