Roll NDK to pick std::deque patch.
[android_tools.git] / sdk / platforms / android-25 / data / res / layout-watch / preference_material.xml
blobad217dbbace921244b1b410970cd4b0c91c1ef20
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 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 Preference in a PreferenceActivity. The
18      Preference is able to place a specific widget for its particular
19      type in the "widget_frame" layout. -->
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="match_parent"
22     android:layout_height="wrap_content"
23     android:minHeight="?attr/listPreferredItemHeightSmall"
24     android:gravity="center_vertical"
25     android:paddingStart="?attr/listPreferredItemPaddingStart"
26     android:paddingEnd="?attr/listPreferredItemPaddingEnd"
27     android:background="?attr/activatedBackgroundIndicator"
28     android:clipToPadding="false">
30     <LinearLayout
31         android:id="@+id/icon_frame"
32         android:layout_width="40dp"
33         android:layout_height="40dp"
34         android:gravity="center"
35         android:orientation="horizontal"
36         android:layout_marginEnd="8dp"
37         android:layout_marginTop="8dp"
38         android:layout_marginBottom="8dp">
39         <com.android.internal.widget.PreferenceImageView
40             android:id="@+id/icon"
41             android:layout_width="wrap_content"
42             android:layout_height="wrap_content"
43             android:maxWidth="40dp"
44             android:maxHeight="40dp" />
45     </LinearLayout>
47     <!-- Preference should place its actual preference widget here. -->
48     <LinearLayout android:id="@+id/widget_frame"
49         android:layout_width="40dp"
50         android:layout_height="40dp"
51         android:gravity="center"
52         android:orientation="horizontal"
53         android:layout_marginEnd="8dp"
54         android:layout_marginTop="8dp"
55         android:layout_marginBottom="8dp" />
57     <RelativeLayout
58         android:layout_width="wrap_content"
59         android:layout_height="wrap_content"
60         android:layout_weight="1"
61         android:layout_marginTop="8dp"
62         android:layout_marginBottom="8dp">
64         <TextView android:id="@+id/title"
65             android:layout_width="wrap_content"
66             android:layout_height="wrap_content"
67             android:maxLines="3"
68             android:textAppearance="?attr/textAppearanceListItem"
69             android:ellipsize="end" />
71         <TextView android:id="@+id/summary"
72             android:layout_width="wrap_content"
73             android:layout_height="wrap_content"
74             android:layout_below="@id/title"
75             android:layout_alignStart="@id/title"
76             android:textAppearance="?attr/textAppearanceListItemSecondary"
77             android:textColor="?attr/textColorSecondary"
78             android:maxLines="10" />
80     </RelativeLayout>
81 </LinearLayout>