Chiao Cheng | fd6d5f8 | 2012-12-04 15:44:17 -0800 | [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 | <!-- |
| 18 | List item in the pop-up window that appears when tapping a contact's photo |
Brian Attwell | 119c1ab | 2014-10-09 10:51:09 -0700 | [diff] [blame] | 19 | in the contact editor. This is similar to the framework's select_dialog_item_material.xml layout |
| 20 | except the text appearance is medium and the padding is set to match the material spec. |
Chiao Cheng | fd6d5f8 | 2012-12-04 15:44:17 -0800 | [diff] [blame] | 21 | --> |
Marcus Hagerott | 8636d1e | 2016-10-27 19:14:12 -0700 | [diff] [blame] | 22 | <LinearLayout |
| 23 | xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | fd6d5f8 | 2012-12-04 15:44:17 -0800 | [diff] [blame] | 24 | android:layout_width="match_parent" |
yuichiro fujiwara | f9bb75f | 2017-06-27 18:59:16 +0900 | [diff] [blame] | 25 | android:layout_height="wrap_content" |
| 26 | android:minHeight="56dp" |
Marcus Hagerott | 8636d1e | 2016-10-27 19:14:12 -0700 | [diff] [blame] | 27 | android:orientation="vertical" |
| 28 | android:paddingBottom="8dp" |
| 29 | android:paddingEnd="24dp" |
| 30 | android:paddingStart="24dp" |
| 31 | android:paddingTop="8dp"> |
| 32 | |
| 33 | <TextView |
| 34 | android:id="@+id/primary_text" |
| 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="0dp" |
| 37 | android:layout_weight="1" |
| 38 | android:ellipsize="marquee" |
| 39 | android:gravity="start|center_vertical" |
| 40 | android:textAlignment="viewStart" |
| 41 | android:textAppearance="?android:textAppearanceListItem" |
| 42 | android:textSize="16sp"/> |
| 43 | |
| 44 | <TextView |
| 45 | android:id="@+id/secondary_text" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:ellipsize="marquee" |
| 49 | android:gravity="center_vertical|start" |
| 50 | android:textAlignment="viewStart" |
| 51 | android:textAppearance="?android:textAppearanceListItemSecondary" |
| 52 | android:textColor="?android:textColorSecondary" |
| 53 | /> |
| 54 | </LinearLayout> |