Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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 |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 22 | android:gravity="center_vertical"> |
| 23 | |
| 24 | <LinearLayout |
| 25 | android:id="@+id/name_pref" |
| 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="match_parent" |
| 28 | android:layout_weight="1" |
| 29 | android:gravity="center_vertical" |
| 30 | android:clickable="true" |
| 31 | android:focusable="true" |
| 32 | android:paddingStart="@*android:dimen/preference_item_padding_side" |
| 33 | android:paddingEnd="?android:attr/scrollbarSize" |
| 34 | android:background="?android:attr/selectableItemBackground"> |
| 35 | |
| 36 | <RelativeLayout |
| 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="wrap_content" |
| 39 | android:layout_marginStart="@*android:dimen/preference_icon_minWidth" |
| 40 | android:layout_marginEnd="6dip" |
| 41 | android:layout_marginTop="6dip" |
| 42 | android:layout_marginBottom="6dip" |
| 43 | android:layout_weight="1"> |
| 44 | |
| 45 | <TextView |
| 46 | android:id="@+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"/> |
| 53 | |
| 54 | </RelativeLayout> |
| 55 | |
| 56 | </LinearLayout> |
| 57 | |
| 58 | </LinearLayout> |