Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 | <view |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 18 | xmlns:ex="http://schemas.android.com/apk/res-auto" |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 19 | class="com.android.contacts.list.ContactTileStarredView" |
Brian Attwell | 71d47d1 | 2014-05-29 13:45:56 -0700 | [diff] [blame] | 20 | android:focusable="true" |
| 21 | android:background="?android:attr/selectableItemBackground"> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 22 | |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 23 | <LinearLayout |
| 24 | android:id="@+id/contact_tile_push_state" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 25 | android:layout_width="match_parent" |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 26 | android:layout_height="match_parent" |
| 27 | android:orientation="vertical" |
Brian Attwell | adbc0a0 | 2014-08-19 15:58:31 -0700 | [diff] [blame] | 28 | android:paddingTop="24dp"> |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 29 | <view |
| 30 | android:id="@+id/contact_tile_container" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 32 | android:layout_height="wrap_content" |
| 33 | ex:direction="widthToHeight" |
| 34 | ex:ratio="1.0" |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 35 | class="com.android.contacts.widget.ProportionalLayout" > |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 36 | <ImageView |
| 37 | android:id="@+id/contact_tile_image" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="match_parent" /> |
| 40 | </view> |
| 41 | <TextView |
| 42 | android:id="@+id/contact_tile_name" |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 43 | android:layout_width="match_parent" |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 44 | android:layout_height="wrap_content" |
| 45 | android:paddingTop="7dp" |
| 46 | android:textColor="#202020" |
Zheng Fu | 093e3f9 | 2014-08-26 14:24:41 -0700 | [diff] [blame] | 47 | android:textSize="@dimen/contact_browser_list_item_text_size" |
Brian Attwell | 10c2984 | 2014-05-28 18:08:36 -0700 | [diff] [blame] | 48 | android:singleLine="true" |
| 49 | android:fadingEdge="horizontal" |
| 50 | android:fadingEdgeLength="3dip" |
| 51 | android:ellipsize="marquee" |
| 52 | android:textAlignment="center"/> |
| 53 | </LinearLayout> |
Chiao Cheng | 64df8b2 | 2012-11-07 18:20:17 -0800 | [diff] [blame] | 54 | </view> |