1<?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"
20    android:minHeight="?android:attr/listPreferredItemHeight"
21    android:gravity="center_vertical"
22    android:paddingRight="?android:attr/scrollbarSize">
23
24    <LinearLayout
25        android:layout_width="wrap_content"
26        android:layout_height="match_parent"
27        android:gravity="center"
28        android:minWidth="@*android:dimen/preference_icon_minWidth"
29        android:orientation="horizontal">
30        <ImageView
31            android:id="@android:id/icon"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:layout_gravity="center"
35            android:minWidth="48dp"
36            />
37    </LinearLayout>
38
39    <RelativeLayout
40        android:layout_width="wrap_content"
41        android:layout_height="wrap_content"
42        android:layout_marginLeft="16dip"
43        android:layout_marginRight="8dip"
44        android:layout_marginTop="6dip"
45        android:layout_marginBottom="6dip"
46        android:layout_weight="1">
47
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/textAppearanceMedium"
53            android:ellipsize="marquee"
54            android:fadingEdge="horizontal" />
55
56        <TextView android:id="@android:id/summary"
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"
59            android:layout_below="@android:id/title"
60            android:layout_alignLeft="@android:id/title"
61            android:textAppearance="?android:attr/textAppearanceSmall"
62            android:textColor="?android:attr/textColorSecondary"
63            android:maxLines="4" />
64
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:layout_below="@android:id/summary"
70            android:layout_alignLeft="@android:id/title"
71            android:minWidth="@dimen/preference_widget_width"
72            android:gravity="center"
73            android:orientation="vertical" />
74
75        <WebView
76            android:id="@+id/webview"
77            android:layout_width="match_parent"
78            android:layout_height="180dp"
79            android:layout_below="@android:id/summary"
80            android:layout_toRightOf="@android:id/widget_frame"
81            android:layout_alignParentRight="true" />
82
83    </RelativeLayout>
84
85</LinearLayout>
86
87