• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2018, 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.notification.row.AppOpsInfo
19        xmlns:android="http://schemas.android.com/apk/res/android"
20        android:layout_width="match_parent"
21        android:layout_height="wrap_content"
22        android:focusable="true"
23        android:id="@+id/app_ops_info"
24        android:clipChildren="false"
25        android:clipToPadding="false"
26        android:orientation="vertical"
27        android:paddingStart="@*android:dimen/notification_content_margin_start"
28        android:paddingEnd="@*android:dimen/notification_content_margin_end"
29        android:background="@color/notification_material_background_color"
30        android:theme="@*android:style/Theme.DeviceDefault.Light">
31
32    <!-- Package Info -->
33    <RelativeLayout
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        android:clipChildren="false"
37        android:clipToPadding="false"
38        android:layout_marginTop="@*android:dimen/notification_header_padding_top" >
39        <ImageView
40            android:id="@+id/pkgicon"
41            android:layout_width="@dimen/notification_guts_header_height"
42            android:layout_height="@dimen/notification_guts_header_height"
43            android:layout_centerVertical="true"
44            android:layout_marginEnd="3dp" />
45        <TextView
46            android:id="@+id/pkgname"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:textAppearance="@*android:style/TextAppearance.Material.Notification.Info"
50            android:layout_marginStart="3dp"
51            android:layout_marginEnd="2dp"
52            android:singleLine="true"
53            android:layout_centerVertical="true"
54            android:layout_toEndOf="@id/pkgicon" />
55    </RelativeLayout>
56
57    <TextView
58        android:id="@+id/prompt"
59        android:layout_width="wrap_content"
60        android:layout_height="wrap_content"
61        android:layout_marginTop="@*android:dimen/notification_header_padding_top"
62        style="@style/TextAppearance.NotificationInfo.Secondary" />
63
64    <!-- Settings and Done buttons -->
65    <RelativeLayout
66        android:id="@+id/bottom_buttons"
67        android:layout_width="match_parent"
68        android:layout_height="wrap_content"
69        android:gravity="center_vertical"
70        android:paddingStart="4dp"
71        android:paddingEnd="4dp">
72        <TextView
73            android:id="@+id/settings"
74            android:text="@string/notification_appops_settings"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:layout_toStartOf="@+id/ok"
78            android:gravity="center_vertical"
79            android:background="@drawable/ripple_drawable"
80            android:layout_marginEnd="8dp"
81            android:minWidth="@dimen/min_clickable_item_size"
82            android:minHeight="@dimen/min_clickable_item_size"
83            style="@style/TextAppearance.NotificationInfo.Button"/>
84        <TextView
85            android:id="@+id/ok"
86            android:text="@string/notification_appops_ok"
87            android:layout_width="wrap_content"
88            android:layout_height="wrap_content"
89            android:layout_alignParentEnd="true"
90            android:gravity="end|center_vertical"
91            android:background="@drawable/ripple_drawable"
92            android:minWidth="@dimen/min_clickable_item_size"
93            android:minHeight="@dimen/min_clickable_item_size"
94            style="@style/TextAppearance.NotificationInfo.Button"/>
95    </RelativeLayout>
96</com.android.systemui.statusbar.notification.row.AppOpsInfo>
97