Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 1 | <?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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 21 | android:id="@android:id/widget_frame" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="wrap_content" |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 24 | android:minHeight="56dp" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 25 | android:gravity="center_vertical" |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 26 | android:paddingEnd="?android:attr/scrollbarSize"> |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 27 | |
| 28 | <ImageView |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 29 | android:id="@android:id/icon" |
Dan Elkouby | 20c904a | 2016-10-03 16:40:16 +0300 | [diff] [blame] | 30 | android:layout_width="44dip" |
| 31 | android:layout_height="44dip" |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 32 | android:layout_marginStart="6dip" |
| 33 | android:layout_marginEnd="6dip" |
| 34 | android:layout_gravity="center" |
| 35 | android:contentDescription="@null" /> |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 36 | |
| 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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 46 | <TextView android:id="@android:id/title" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:singleLine="true" |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 50 | android:textAppearance="?android:attr/textAppearanceLarge" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 51 | android:ellipsize="marquee" |
| 52 | android:fadingEdge="horizontal" /> |
| 53 | |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 54 | <TextView android:id="@android:id/summary" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 55 | 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 Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 59 | android:textAppearance="?android:attr/textAppearanceSmall" |
Steve Kondik | 66ac5d7 | 2016-09-03 16:24:26 -0700 | [diff] [blame] | 60 | android:maxLines="2" /> |
| 61 | |
| 62 | </RelativeLayout> |
| 63 | |
| 64 | </LinearLayout> |