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" |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 19 | class="com.android.contacts.list.ContactListFilterView" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 20 | android:descendantFocusability="blocksDescendants" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
Wenyi Wang | 637c079 | 2016-07-21 14:39:54 -0700 | [diff] [blame] | 23 | android:paddingStart="@dimen/contact_filter_left_margin" |
| 24 | android:paddingEnd="@dimen/contact_filter_right_margin" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 25 | android:minHeight="@dimen/contact_filter_item_min_height" |
| 26 | android:gravity="center_vertical"> |
| 27 | |
| 28 | <ImageView |
| 29 | android:id="@+id/icon" |
| 30 | android:scaleType="fitCenter" |
| 31 | android:layout_width="@dimen/contact_filter_icon_size" |
| 32 | android:layout_height="@dimen/contact_filter_icon_size"/> |
| 33 | |
| 34 | <LinearLayout |
| 35 | android:layout_width="0dip" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:layout_weight="1" |
Wenyi Wang | 637c079 | 2016-07-21 14:39:54 -0700 | [diff] [blame] | 38 | android:layout_marginTop="-1dip" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 39 | android:orientation="vertical" |
| 40 | android:layout_marginLeft="8dip" |
| 41 | android:layout_marginStart="8dip"> |
| 42 | |
| 43 | <TextView |
| 44 | android:id="@+id/accountType" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
Wenyi Wang | 637c079 | 2016-07-21 14:39:54 -0700 | [diff] [blame] | 47 | android:textAppearance="?android:attr/textAppearanceListItem" |
Wenyi Wang | 82323b5 | 2016-07-18 16:52:01 -0700 | [diff] [blame] | 48 | android:textColor="@color/account_filter_text_color" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 49 | android:singleLine="true" |
| 50 | android:ellipsize="end"/> |
| 51 | |
| 52 | <TextView |
| 53 | android:id="@+id/accountUserName" |
| 54 | android:layout_marginTop="-3dip" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
Wenyi Wang | 637c079 | 2016-07-21 14:39:54 -0700 | [diff] [blame] | 57 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
Wenyi Wang | 82323b5 | 2016-07-18 16:52:01 -0700 | [diff] [blame] | 58 | android:textColor="@color/account_filter_text_color" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 59 | android:singleLine="true" |
| 60 | android:ellipsize="end"/> |
| 61 | </LinearLayout> |
| 62 | |
| 63 | <RadioButton |
| 64 | android:id="@+id/radioButton" |
| 65 | android:clickable="false" |
Walter Jang | 98a1f7a | 2016-07-14 19:49:06 +0000 | [diff] [blame] | 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:layout_gravity="end|center_vertical" /> |
| 69 | </view> |
| 70 | |