Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / permissions_account_and_authtokentype.xml
blobac5b08a32a3a98c47399812fcb4fd69ab29b9780
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 The Android Open Source Project
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
8           http://www.apache.org/licenses/LICENSE-2.0
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 -->
17 <!--
18   Defines the layout of an account and authtoken type permission item.
19   Contains an icon, the account type and name and the authtoken type.
20 -->
22 <RelativeLayout
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     android:layout_width="match_parent"
25     android:layout_height="wrap_content">
27     <ImageView
28         android:id="@+id/permission_icon"
29         android:layout_width="30dip"
30         android:layout_height="30dip"
31         android:drawable="@drawable/ic_bullet_key_permission"
32         android:layout_alignParentStart="true"
33         android:scaleType="fitCenter" />
36     <TextView
37         android:id="@+id/account_type"
38         android:textAppearance="?android:attr/textAppearanceMedium"
39         android:textStyle="bold"
40         android:paddingStart="6dip"
41         android:layout_toEndOf="@id/permission_icon"
42         android:layout_width="wrap_content"
43         android:layout_height="wrap_content" />
45     <TextView
46         android:id="@+id/account_name"
47         android:textAppearance="?android:attr/textAppearanceSmall"
48         android:layout_marginTop="-4dip"
49         android:paddingBottom="8dip"
50         android:paddingStart="6dip"
51         android:layout_below="@id/account_type"
52         android:layout_toEndOf="@id/permission_icon"
53         android:layout_width="wrap_content"
54         android:layout_height="wrap_content" />
56     <TextView
57         android:id="@+id/authtoken_type"
58         android:textAppearance="?android:attr/textAppearanceSmall"
59         android:layout_marginTop="-4dip"
60         android:paddingBottom="8dip"
61         android:paddingStart="6dip"
62         android:layout_below="@id/account_name"
63         android:layout_toEndOf="@id/permission_icon"
64         android:layout_width="wrap_content"
65         android:layout_height="wrap_content" />
67 </RelativeLayout>