| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2011 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <view |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| class="com.android.contacts.list.ContactTileSquareView" |
| android:focusable="true" |
| android:padding="1px" |
| android:background="@drawable/list_selector" > |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" > |
| |
| <ImageView |
| android:id="@+id/contact_tile_image" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:scaleType="centerCrop" /> |
| |
| <View |
| android:id="@+id/contact_tile_background" |
| android:layout_width="match_parent" |
| android:layout_height="48dip" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentLeft="true" |
| android:alpha="0.5" |
| android:background="@android:color/black" /> |
| |
| <TextView |
| android:id="@+id/contact_tile_name" |
| android:layout_width="match_parent" |
| android:layout_height="48dip" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentLeft="true" |
| android:gravity="center_vertical" |
| android:paddingLeft="8dip" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textColor="@android:color/white" |
| android:textAppearance="?android:attr/textAppearanceMedium" /> |
| |
| </RelativeLayout> |
| |
| </view> |