blob: 590a05ad6cdc01c35110550c981fad4e44d1c076 [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"
Adam Lesinski701af872016-08-16 15:59:14 -070021 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"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070026 android:paddingEnd="?android:attr/scrollbarSize">
Amith Yamasani498d9042009-07-31 07:24:08 -070027
28 <ImageView
29 android:id="@+id/icon"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070032 android:layout_marginStart="6dip"
33 android:layout_marginEnd="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"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070040 android:layout_marginStart="2dip"
41 android:layout_marginEnd="6dip"
Amith Yamasani498d9042009-07-31 07:24:08 -070042 android:layout_marginTop="6dip"
43 android:layout_marginBottom="6dip"
44 android:layout_weight="1">
Amith Yamasani7f287872009-08-06 16:43:23 -070045
Adam Lesinski701af872016-08-16 15:59:14 -070046 <TextView android:id="@android:id/title"
Amith Yamasani498d9042009-07-31 07:24:08 -070047 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
Adam Lesinski701af872016-08-16 15:59:14 -070054 <TextView android:id="@android:id/summary"
Amith Yamasani498d9042009-07-31 07:24:08 -070055 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_below="@android:id/title"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070058 android:layout_alignStart="@android:id/title"
Amith Yamasani498d9042009-07-31 07:24:08 -070059 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>