blob: 76606468cc6083135e99a4434cce5332502874c4 [file] [log] [blame]
Amith Yamasani498d9042009-07-31 07:24:08 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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<!-- 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:id="@+android:id/widget_frame"
Romain Guy33787152010-01-08 15:07:10 -080022 android:layout_width="match_parent"
Amith Yamasani498d9042009-07-31 07:24:08 -070023 android:layout_height="wrap_content"
Amith Yamasanid7993472010-08-18 13:59:28 -070024 android:minHeight="56dp"
Amith Yamasani498d9042009-07-31 07:24:08 -070025 android:gravity="center_vertical"
26 android:paddingRight="?android:attr/scrollbarSize">
27
28 <ImageView
29 android:id="@+id/icon"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
Amith Yamasani7f287872009-08-06 16:43:23 -070032 android:layout_marginLeft="6dip"
Amith Yamasani498d9042009-07-31 07:24:08 -070033 android:layout_marginRight="6dip"
alanv0aa7c4f2012-05-21 17:55:19 -070034 android:layout_gravity="center"
35 android:contentDescription="@null" />
Amith Yamasani498d9042009-07-31 07:24:08 -070036
37 <RelativeLayout
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
Amith Yamasani7f287872009-08-06 16:43:23 -070040 android:layout_marginLeft="2dip"
Amith Yamasani498d9042009-07-31 07:24:08 -070041 android:layout_marginRight="6dip"
42 android:layout_marginTop="6dip"
43 android:layout_marginBottom="6dip"
44 android:layout_weight="1">
Amith Yamasani7f287872009-08-06 16:43:23 -070045
Amith Yamasani498d9042009-07-31 07:24:08 -070046 <TextView android:id="@+android:id/title"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:singleLine="true"
50 android:textAppearance="?android:attr/textAppearanceLarge"
51 android:ellipsize="marquee"
52 android:fadingEdge="horizontal" />
Amith Yamasani7f287872009-08-06 16:43:23 -070053
Amith Yamasani498d9042009-07-31 07:24:08 -070054 <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_alignLeft="@android:id/title"
59 android:textAppearance="?android:attr/textAppearanceSmall"
60 android:maxLines="2" />
61
62 </RelativeLayout>
Amith Yamasani7f287872009-08-06 16:43:23 -070063
Amith Yamasani498d9042009-07-31 07:24:08 -070064</LinearLayout>