blob: 57a904d6d4eff314c83671ad9d459e901f31045b [file] [log] [blame]
John Reck40badf22011-04-20 15:31:13 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
John Reck8fc22a12011-06-16 14:57:41 -070020 android:minHeight="?android:attr/listPreferredItemHeight"
21 android:gravity="center_vertical"
Vivek Sekhared791da2015-02-22 12:39:05 -080022 android:paddingEnd="?android:attr/scrollbarSize">
John Reck40badf22011-04-20 15:31:13 -070023
John Reck8fc22a12011-06-16 14:57:41 -070024 <LinearLayout
25 android:layout_width="wrap_content"
26 android:layout_height="match_parent"
27 android:gravity="center"
John Reck8fc22a12011-06-16 14:57:41 -070028 android:orientation="horizontal">
29 <ImageView
30 android:id="@android:id/icon"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_gravity="center"
34 android:minWidth="48dp"
35 />
36 </LinearLayout>
37
38 <RelativeLayout
John Reck40badf22011-04-20 15:31:13 -070039 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
Vivek Sekhared791da2015-02-22 12:39:05 -080041 android:layout_marginStart="16dip"
42 android:layout_marginEnd="8dip"
John Reck8fc22a12011-06-16 14:57:41 -070043 android:layout_marginTop="6dip"
44 android:layout_marginBottom="6dip"
45 android:layout_weight="1">
John Reck40badf22011-04-20 15:31:13 -070046
John Reck8fc22a12011-06-16 14:57:41 -070047 <TextView android:id="@android:id/title"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:singleLine="true"
51 android:textAppearance="?android:attr/textAppearanceMedium"
52 android:ellipsize="marquee"
53 android:fadingEdge="horizontal" />
54
55 <TextView android:id="@android:id/summary"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:layout_below="@android:id/title"
Vivek Sekhared791da2015-02-22 12:39:05 -080059 android:layout_alignStart="@android:id/title"
John Reck8fc22a12011-06-16 14:57:41 -070060 android:textAppearance="?android:attr/textAppearanceSmall"
61 android:textColor="?android:attr/textColorSecondary"
62 android:maxLines="4" />
63
64 <!-- Preference should place its actual preference widget here. -->
65 <LinearLayout android:id="@android:id/widget_frame"
66 android:layout_width="wrap_content"
67 android:layout_height="match_parent"
68 android:layout_below="@android:id/summary"
Vivek Sekhared791da2015-02-22 12:39:05 -080069 android:layout_alignStart="@android:id/title"
John Reck8fc22a12011-06-16 14:57:41 -070070 android:minWidth="@dimen/preference_widget_width"
71 android:gravity="center"
72 android:orientation="vertical" />
73
Bijan Amirzada3bbb3a42014-06-17 12:06:18 -070074 <TextView
75 android:id="@+id/text_size_preview"
John Reck8fc22a12011-06-16 14:57:41 -070076 android:layout_width="match_parent"
77 android:layout_height="180dp"
78 android:layout_below="@android:id/summary"
Vivek Sekhared791da2015-02-22 12:39:05 -080079 android:layout_toEndOf="@android:id/widget_frame"
80 android:layout_alignParentEnd="true"
Bijan Amirzada3bbb3a42014-06-17 12:06:18 -070081 android:textColor="@color/black"
82 android:background="@color/white"/>
John Reck8fc22a12011-06-16 14:57:41 -070083
84 </RelativeLayout>
John Reck40badf22011-04-20 15:31:13 -070085
86</LinearLayout>
87