Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / preference_information_holo.xml
blobd0d446cb8fc760b287de107e46a28c0d6effc443
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2011 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
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 -->
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="?android:attr/listPreferredItemHeight"
24     android:gravity="center_vertical"
25     android:paddingStart="@dimen/preference_item_padding_side"
26     android:paddingEnd="?android:attr/scrollbarSize">
28     <LinearLayout
29         android:layout_width="wrap_content"
30         android:layout_height="match_parent"
31         android:minWidth="@dimen/preference_icon_minWidth"
32         android:gravity="center"
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_gravity="center"
39             android:paddingEnd="@dimen/preference_item_padding_inner" />
40     </LinearLayout>
42     <RelativeLayout
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_weight="1"
46         android:paddingEnd="@dimen/preference_item_padding_inner"
47         android:paddingTop="6dip"
48         android:paddingBottom="6dip">
50         <TextView android:id="@+android:id/title"
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:singleLine="true"
54             android:textAppearance="?android:attr/textAppearanceMedium"
55             android:textColor="?android:attr/textColorSecondary" />
56             
57         <TextView android:id="@+android:id/summary"
58             android:layout_width="wrap_content"
59             android:layout_height="wrap_content"
60             android:layout_below="@android:id/title"
61             android:layout_alignStart="@android:id/title"
62             android:textAppearance="?android:attr/textAppearanceSmall"
63             android:textColor="?android:attr/textColorSecondary"
64             android:maxLines="10" />
66     </RelativeLayout>
68     <!-- Preference should place its actual preference widget here. -->
69     <LinearLayout android:id="@+android:id/widget_frame"
70         android:layout_width="wrap_content"
71         android:layout_height="match_parent"
72         android:gravity="center_vertical"
73         android:orientation="vertical" />
75 </LinearLayout>