OSDN Git Service

Prevent overlay drawing on top of Bluetooth pairing dialog
[android-x86/packages-apps-Settings.git] / res / layout / restricted_preference_user_delete_widget.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 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 <!-- Used by UserPreference to show the trash icon -->
18 <merge xmlns:android="http://schemas.android.com/apk/res/android">
19     <include layout="@layout/restricted_icon" />
20
21     <LinearLayout android:id="@+id/user_delete_widget"
22             android:layout_width="wrap_content"
23             android:layout_height="match_parent"
24             android:orientation="horizontal">
25         <View
26             android:id="@+id/divider_manage"
27             android:layout_width="2dip"
28             android:layout_height="match_parent"
29             android:layout_marginTop="5dip"
30             android:layout_marginBottom="5dip"
31             android:background="@android:drawable/divider_horizontal_dark" />
32         <ImageView
33             android:id="@+id/manage_user"
34             android:layout_width="wrap_content"
35             android:layout_height="fill_parent"
36             android:paddingStart="16dip"
37             android:paddingEnd="16dip"
38             android:src="@drawable/ic_settings"
39             android:contentDescription="@string/settings_label"
40             android:layout_gravity="center"
41             android:background="?android:attr/selectableItemBackground" />
42         <View
43             android:id="@+id/divider_delete"
44             android:layout_width="2dip"
45             android:layout_height="match_parent"
46             android:layout_marginTop="5dip"
47             android:layout_marginBottom="5dip"
48             android:background="@android:drawable/divider_horizontal_dark" />
49         <ImageView
50             android:id="@+id/trash_user"
51             android:layout_width="wrap_content"
52             android:layout_height="fill_parent"
53             android:paddingStart="16dip"
54             android:paddingEnd="16dip"
55             android:src="@drawable/ic_delete"
56             android:contentDescription="@string/user_delete_user_description"
57             android:layout_gravity="center"
58             android:background="?android:attr/selectableItemBackground" />
59     </LinearLayout>
60 </merge>