Sanket Padawe | 0f596b9 | 2014-10-24 10:17:08 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2014 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 | |
Sanket Padawe | 0381f6c | 2014-11-12 12:41:35 -0800 | [diff] [blame] | 17 | <!-- Layout of a single item for displaying sim cards. --> |
Sanket Padawe | 0f596b9 | 2014-10-24 10:17:08 -0700 | [diff] [blame] | 18 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:orientation="horizontal" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
Sanket Padawe | a8bd025 | 2014-11-17 10:43:37 -0800 | [diff] [blame] | 22 | android:background="?android:attr/selectableItemBackground" > |
Sanket Padawe | 0f596b9 | 2014-10-24 10:17:08 -0700 | [diff] [blame] | 23 | |
| 24 | <ImageView android:id="@+id/icon" |
| 25 | android:layout_width="48dp" |
| 26 | android:layout_height="48dp" |
| 27 | android:scaleType="center" /> |
| 28 | |
Sanket Padawe | 0381f6c | 2014-11-12 12:41:35 -0800 | [diff] [blame] | 29 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 30 | android:orientation="vertical" |
| 31 | android:layout_marginStart="15dip" |
| 32 | android:layout_marginEnd="6dip" |
| 33 | android:layout_marginTop="6dip" |
| 34 | android:layout_marginBottom="6dip" |
| 35 | android:layout_height="wrap_content" |
Sanket Padawe | 0f596b9 | 2014-10-24 10:17:08 -0700 | [diff] [blame] | 36 | android:layout_width="0dp" |
Sanket Padawe | 0381f6c | 2014-11-12 12:41:35 -0800 | [diff] [blame] | 37 | android:layout_weight="1" > |
| 38 | <TextView android:id="@+id/title" |
| 39 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 40 | android:gravity="start|center_vertical" |
| 41 | android:layout_marginLeft="8dp" |
| 42 | android:layout_width="match_parent" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:singleLine="true" |
| 45 | android:ellipsize="marquee" |
| 46 | android:fadingEdge="horizontal" /> |
| 47 | <TextView android:id="@+id/summary" |
| 48 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 49 | android:gravity="start|center_vertical" |
| 50 | android:layout_marginLeft="8dp" |
| 51 | android:layout_width="match_parent" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:layout_below="@id/title" |
| 54 | android:textColor="?android:attr/textColorSecondary" |
| 55 | android:layout_alignStart="@id/title" /> |
| 56 | </LinearLayout> |
Sanket Padawe | 0f596b9 | 2014-10-24 10:17:08 -0700 | [diff] [blame] | 57 | </LinearLayout> |