blob: 4d1fbca70f91f4964edae1c25d1746b64eb414d2 [file] [log] [blame]
Walter Jang98a1f7a2016-07-14 19:49:06 +00001<?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 Mai69c182a2016-12-05 13:07:03 -080019 class="com.android.contacts.list.ContactListFilterView"
Walter Jang98a1f7a2016-07-14 19:49:06 +000020 android:descendantFocusability="blocksDescendants"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
Wenyi Wang637c0792016-07-21 14:39:54 -070023 android:paddingStart="@dimen/contact_filter_left_margin"
24 android:paddingEnd="@dimen/contact_filter_right_margin"
Walter Jang98a1f7a2016-07-14 19:49:06 +000025 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 Wang637c0792016-07-21 14:39:54 -070038 android:layout_marginTop="-1dip"
Walter Jang98a1f7a2016-07-14 19:49:06 +000039 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 Wang637c0792016-07-21 14:39:54 -070047 android:textAppearance="?android:attr/textAppearanceListItem"
Wenyi Wang82323b52016-07-18 16:52:01 -070048 android:textColor="@color/account_filter_text_color"
Walter Jang98a1f7a2016-07-14 19:49:06 +000049 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 Wang637c0792016-07-21 14:39:54 -070057 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
Wenyi Wang82323b52016-07-18 16:52:01 -070058 android:textColor="@color/account_filter_text_color"
Walter Jang98a1f7a2016-07-14 19:49:06 +000059 android:singleLine="true"
60 android:ellipsize="end"/>
61 </LinearLayout>
62
63 <RadioButton
64 android:id="@+id/radioButton"
65 android:clickable="false"
Walter Jang98a1f7a2016-07-14 19:49:06 +000066 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:layout_gravity="end|center_vertical" />
69</view>
70