Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 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 | <view |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | class="com.android.contacts.common.list.ContactListFilterView" |
| 20 | android:descendantFocusability="blocksDescendants" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:minHeight="@dimen/contact_filter_item_min_height" |
| 24 | android:gravity="center_vertical"> |
| 25 | |
| 26 | <ImageView |
| 27 | android:id="@+id/icon" |
| 28 | android:scaleType="fitCenter" |
| 29 | android:layout_width="@dimen/contact_filter_icon_size" |
| 30 | android:layout_height="@dimen/contact_filter_icon_size"/> |
| 31 | |
| 32 | <LinearLayout |
| 33 | android:layout_width="0dip" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:layout_weight="1" |
| 36 | android:orientation="vertical" |
| 37 | android:layout_marginLeft="8dip" |
| 38 | android:layout_marginStart="8dip"> |
| 39 | |
| 40 | <TextView |
| 41 | android:id="@+id/accountType" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 45 | android:singleLine="true" |
| 46 | android:ellipsize="end"/> |
| 47 | |
| 48 | <TextView |
| 49 | android:id="@+id/accountUserName" |
| 50 | android:layout_marginTop="-3dip" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 54 | android:textColor="?android:attr/textColorTertiary" |
| 55 | android:singleLine="true" |
| 56 | android:ellipsize="end"/> |
| 57 | </LinearLayout> |
| 58 | |
| 59 | <RadioButton |
| 60 | android:id="@+id/radioButton" |
| 61 | android:clickable="false" |
| 62 | android:layout_marginTop="1dip" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:layout_height="wrap_content" |
| 65 | android:layout_gravity="end|center_vertical" /> |
| 66 | </view> |
| 67 | |