Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:orientation="horizontal" |
| 19 | android:layout_width="match_parent" |
Wenyi Wang | 5368489 | 2015-10-23 11:11:16 -0700 | [diff] [blame] | 20 | android:layout_height="@dimen/quickcontact_expanding_item_height" |
| 21 | android:paddingTop="@dimen/quickcontact_expanding_item_padding"> |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 22 | |
| 23 | <ImageView |
| 24 | android:id="@+id/aggregation_suggestion_photo" |
| 25 | android:layout_width="@dimen/quickcontact_suggestion_card_icon_height" |
| 26 | android:layout_height="@dimen/quickcontact_suggestion_card_icon_width" |
| 27 | android:layout_marginStart="@dimen/quickcontact_suggestion_card_image_spacing" |
| 28 | android:scaleType="fitCenter" |
| 29 | android:layout_gravity="center_vertical" /> |
| 30 | |
| 31 | <LinearLayout |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 32 | android:id="@+id/suggestion_contact_item" |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 33 | android:layout_width="wrap_content" |
| 34 | android:layout_height="wrap_content" |
Wenyi Wang | 5368489 | 2015-10-23 11:11:16 -0700 | [diff] [blame] | 35 | android:layout_marginStart="@dimen/quickcontact_expanding_item_image_padding" |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 36 | android:layout_weight="1" |
| 37 | android:orientation="vertical" |
| 38 | android:layout_gravity="center_vertical"> |
| 39 | |
| 40 | <TextView |
| 41 | android:id="@+id/aggregation_suggestion_name" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 44 | android:layout_marginTop="@dimen/quickcontact_suggestion_card_layout_margin" |
| 45 | android:singleLine="true" |
| 46 | android:ellipsize="end" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 47 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 48 | android:textColor="@color/quickcontact_entry_header_text_color" /> |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 49 | |
| 50 | <TextView |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 51 | android:id="@+id/aggregation_suggestion_account_name" |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 55 | android:layout_marginBottom="@dimen/quickcontact_suggestion_card_layout_margin" |
| 56 | android:singleLine="true" |
Tingting Wang | 18906c0 | 2015-10-16 14:53:10 -0700 | [diff] [blame] | 57 | android:ellipsize="end" /> |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 58 | |
| 59 | </LinearLayout> |
| 60 | |
| 61 | <CheckBox |
| 62 | android:id="@+id/suggestion_checkbox" |
| 63 | android:layout_gravity="center_vertical|end" |
| 64 | android:layout_alignParentEnd="true" |
guanxiongliu | a3101b7 | 2016-02-22 14:42:08 -0800 | [diff] [blame] | 65 | android:layout_width="48dp" |
| 66 | android:layout_height="48dp" |
Tingting Wang | e3a7c4f | 2015-09-24 18:23:18 -0700 | [diff] [blame] | 67 | android:shadowColor="@color/divider_line_color_light" |
| 68 | android:layout_marginEnd="@dimen/quickcontact_suggestion_card_checkbox_right_margin"/> |
| 69 | |
| 70 | </LinearLayout> |