|
26 | 26 | android:id="@+id/no_permissions" |
27 | 27 | android:text="@string/no_permissions" |
28 | 28 | android:textAppearance="?android:attr/textAppearanceMedium" |
29 | | - android:paddingLeft="16dip" |
30 | | - android:paddingRight="12dip" |
| 29 | + android:paddingLeft="8dp" |
| 30 | + android:paddingRight="8dp" |
31 | 31 | android:visibility="gone" |
32 | 32 | android:layout_width="wrap_content" |
33 | 33 | android:layout_height="wrap_content" /> |
34 | 34 |
|
35 | | - <!-- List view containing list of new permissions categorized by groups. --> |
| 35 | + <!-- Populated with all permissions. --> |
36 | 36 | <LinearLayout |
37 | | - android:id="@+id/new_perms_list" |
| 37 | + android:id="@+id/perms_list" |
38 | 38 | android:orientation="vertical" |
39 | 39 | android:layout_width="match_parent" |
40 | | - android:paddingLeft="16dip" |
41 | | - android:paddingRight="12dip" |
42 | | - android:layout_height="wrap_content" /> |
43 | | - |
44 | | - <!-- List view containing list of dangerous permissions categorized by groups. --> |
45 | | - <LinearLayout |
46 | | - android:id="@+id/dangerous_perms_list" |
47 | | - android:orientation="vertical" |
48 | | - android:layout_width="match_parent" |
49 | | - android:paddingLeft="16dip" |
50 | | - android:paddingRight="12dip" |
51 | | - android:layout_height="wrap_content" /> |
52 | | - |
53 | | - <!-- Clickable area letting user display additional permissions. --> |
54 | | - <LinearLayout |
55 | | - android:id="@+id/show_more" |
56 | | - android:orientation="vertical" |
57 | | - android:layout_width="match_parent" |
58 | | - android:layout_height="wrap_content" |
59 | | - android:visibility="gone" |
60 | | - android:layout_marginTop="12dip" |
61 | | - android:layout_marginBottom="16dip"> |
62 | | - |
63 | | - <View |
64 | | - android:layout_width="match_parent" |
65 | | - android:layout_height="1dip" |
66 | | - android:background="?android:attr/listDivider" /> |
67 | | - |
68 | | - <LinearLayout |
69 | | - android:orientation="horizontal" |
70 | | - android:layout_width="match_parent" |
71 | | - android:layout_height="wrap_content" |
72 | | - android:paddingTop="16dip" |
73 | | - android:paddingBottom="12dip" |
74 | | - android:paddingLeft="16dip" |
75 | | - android:duplicateParentState="true" |
76 | | - android:background="?android:attr/selectableItemBackground"> |
77 | | - |
78 | | - <TextView |
79 | | - android:id="@+id/show_more_text" |
80 | | - android:textAppearance="?android:attr/textAppearanceMedium" |
81 | | - android:duplicateParentState="true" |
82 | | - android:layout_alignTop="@+id/show_more_icon" |
83 | | - android:layout_gravity="center_vertical" |
84 | | - android:paddingLeft="36dip" |
85 | | - android:layout_weight="1" |
86 | | - android:layout_width="wrap_content" |
87 | | - android:layout_height="wrap_content" /> |
88 | | - |
89 | | - <ImageView |
90 | | - android:id="@id/show_more_icon" |
91 | | - android:layout_width="wrap_content" |
92 | | - android:layout_height="wrap_content" |
93 | | - android:layout_marginRight="12dip" /> |
94 | | - |
95 | | - </LinearLayout> |
96 | | - |
97 | | - <View |
98 | | - android:layout_width="match_parent" |
99 | | - android:layout_height="1dip" |
100 | | - android:background="?android:attr/listDivider" /> |
101 | | - |
102 | | - </LinearLayout> |
103 | | - |
104 | | - <!-- List view containing list of permissions that aren't dangerous. --> |
105 | | - <LinearLayout |
106 | | - android:id="@+id/non_dangerous_perms_list" |
107 | | - android:orientation="vertical" |
108 | | - android:paddingLeft="16dip" |
109 | | - android:paddingRight="12dip" |
110 | | - android:layout_width="match_parent" |
111 | 40 | android:layout_height="wrap_content" /> |
112 | 41 |
|
113 | 42 | </LinearLayout> |
|
0 commit comments