app_permission_item.xml revision 0e128bb2e03dafdabc06710a6b0ea93f0e62a188
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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
17<!--
18  Defines the layout of a single permission item.
19  Contains the group name and a list of permission labels under the group.
20-->
21
22<view class="android.widget.AppSecurityPermissions$PermissionItemView"
23    xmlns:android="http://schemas.android.com/apk/res/android"
24    android:layout_width="match_parent"
25    android:layout_height="wrap_content"
26    android:orientation="horizontal"
27    android:background="?android:attr/selectableItemBackground">
28
29    <ImageView
30        android:id="@+id/perm_icon"
31        android:layout_width="32dp"
32        android:layout_height="32dp"
33        android:layout_marginLeft="16dp"
34        android:layout_marginRight="8dp"
35        android:scaleType="fitCenter" />
36
37    <ImageView
38        android:layout_width="wrap_content"
39        android:layout_height="match_parent"
40        android:background="?android:attr/dividerVertical" />
41
42    <TextView
43        android:id="@+id/perm_name"
44        android:textAppearance="?android:attr/textAppearanceSmall"
45        android:layout_marginLeft="8dp"
46        android:layout_width="wrap_content"
47        android:layout_height="wrap_content"
48        android:layout_gravity="top|left" />
49
50</view>
51