Roll NDK to pick std::deque patch.
[android_tools.git] / sdk / platforms / android-25 / data / res / layout / preference_child_material.xml
blobe5a8819ea4cf9e2cb3cfdfa0380ebfb2ba61225b
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2014 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 <!-- Layout for a visually child-like Preference in a PreferenceActivity. -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="match_parent"
20     android:layout_height="wrap_content"
21     android:layout_marginStart="?attr/listPreferredItemPaddingStart"
22     android:minHeight="?android:attr/listPreferredItemHeight"
23     android:gravity="center_vertical"
24     android:paddingStart="?attr/listPreferredItemPaddingStart"
25     android:paddingEnd="?attr/listPreferredItemPaddingEnd">
27     <LinearLayout
28         android:id="@+android:id/icon_frame"
29         android:layout_width="wrap_content"
30         android:layout_height="match_parent"
31         android:minWidth="58dip"
32         android:gravity="start|center_vertical"
33         android:orientation="horizontal">
34         <ImageView
35             android:id="@+android:id/icon"
36             android:layout_width="wrap_content"
37             android:layout_height="wrap_content"
38             android:layout_marginEnd="8dip" />
39     </LinearLayout>
41     <RelativeLayout
42         android:layout_width="wrap_content"
43         android:layout_height="wrap_content"
44         android:layout_weight="1"
45         android:paddingTop="16dip"
46         android:paddingBottom="16dip">
48         <TextView android:id="@+android:id/title"
49             android:layout_width="wrap_content"
50             android:layout_height="wrap_content"
51             android:singleLine="true"
52             android:textAppearance="?android:attr/textAppearanceListItem" />
54         <TextView android:id="@+android:id/summary"
55             android:layout_width="wrap_content"
56             android:layout_height="wrap_content"
57             android:layout_below="@android:id/title"
58             android:layout_alignStart="@android:id/title"
59             android:textAppearance="?android:attr/textAppearanceListItemSecondary"
60             android:textColor="?android:attr/textColorSecondary"
61             android:maxLines="10" />
63     </RelativeLayout>
65     <!-- Preference should place its actual preference widget here. -->
66     <LinearLayout android:id="@+android:id/widget_frame"
67         android:layout_width="wrap_content"
68         android:layout_height="match_parent"
69         android:minWidth="58dip"
70         android:gravity="end|center_vertical"
71         android:orientation="vertical" />
73 </LinearLayout>