blob: 4f56e223733619e76037aecb2085b461dd83f28c [file] [log] [blame]
Steve Kondik66ac5d72016-09-03 16:24:26 -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"
Steve Kondikf0964652016-09-19 23:01:42 -070021 android:id="@android:id/widget_frame"
Steve Kondik66ac5d72016-09-03 16:24:26 -070022 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
Steve Kondik03b56502016-09-10 17:17:25 -070024 android:minHeight="56dp"
Steve Kondik66ac5d72016-09-03 16:24:26 -070025 android:gravity="center_vertical"
Steve Kondik03b56502016-09-10 17:17:25 -070026 android:paddingEnd="?android:attr/scrollbarSize">
Steve Kondik66ac5d72016-09-03 16:24:26 -070027
28 <ImageView
Steve Kondikf0964652016-09-19 23:01:42 -070029 android:id="@android:id/icon"
Dan Elkouby20c904a2016-10-03 16:40:16 +030030 android:layout_width="44dip"
31 android:layout_height="44dip"
Steve Kondik03b56502016-09-10 17:17:25 -070032 android:layout_marginStart="6dip"
33 android:layout_marginEnd="6dip"
34 android:layout_gravity="center"
35 android:contentDescription="@null" />
Steve Kondik66ac5d72016-09-03 16:24:26 -070036
37 <RelativeLayout
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_marginStart="2dip"
41 android:layout_marginEnd="6dip"
42 android:layout_marginTop="6dip"
43 android:layout_marginBottom="6dip"
44 android:layout_weight="1">
45
Steve Kondikf0964652016-09-19 23:01:42 -070046 <TextView android:id="@android:id/title"
Steve Kondik66ac5d72016-09-03 16:24:26 -070047 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:singleLine="true"
Steve Kondik03b56502016-09-10 17:17:25 -070050 android:textAppearance="?android:attr/textAppearanceLarge"
Steve Kondik66ac5d72016-09-03 16:24:26 -070051 android:ellipsize="marquee"
52 android:fadingEdge="horizontal" />
53
Steve Kondikf0964652016-09-19 23:01:42 -070054 <TextView android:id="@android:id/summary"
Steve Kondik66ac5d72016-09-03 16:24:26 -070055 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_below="@android:id/title"
58 android:layout_alignStart="@android:id/title"
Steve Kondik03b56502016-09-10 17:17:25 -070059 android:textAppearance="?android:attr/textAppearanceSmall"
Steve Kondik66ac5d72016-09-03 16:24:26 -070060 android:maxLines="2" />
61
62 </RelativeLayout>
63
64</LinearLayout>