Home | History | Annotate | Download | only in layout
      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"
     18     class="com.android.contacts.list.ContactTileView"
     19     android:focusable="true"
     20     android:background="?android:attr/selectableItemBackground"
     21     android:nextFocusRight="@+id/contact_tile_quick">
     22 
     23     <RelativeLayout
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent" >
     26 
     27         <view
     28             android:id="@+id/image_container"
     29             class="com.android.contacts.list.ContactTileImageContainer"
     30             android:layout_width="64dip"
     31             android:layout_height="64dip"
     32             android:layout_alignParentRight="true">
     33             <QuickContactBadge
     34                 android:id="@+id/contact_tile_quick"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="match_parent"
     37                 android:scaleType="centerCrop"
     38                 android:focusable="true" />
     39         </view>
     40 
     41         <LinearLayout
     42             android:layout_width="match_parent"
     43             android:layout_height="64dip"
     44             android:orientation="vertical"
     45             android:layout_alignParentBottom="true"
     46             android:gravity="center_vertical"
     47             android:paddingRight="80dip"
     48             android:paddingLeft="8dip">
     49 
     50             <TextView
     51                 android:id="@+id/contact_tile_name"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="wrap_content"
     54                 android:textColor="@color/primary_text_color"
     55                 android:textSize="18sp"
     56                 android:singleLine="true"
     57                 android:fadingEdge="horizontal"
     58                 android:fadingEdgeLength="3dip"
     59                 android:ellipsize="marquee" />
     60 
     61             <TextView
     62                 android:id="@+id/contact_tile_status"
     63                 android:layout_width="wrap_content"
     64                 android:layout_height="wrap_content"
     65                 android:textAppearance="?android:attr/textAppearanceSmall"
     66                 android:textColor="?android:attr/textColorSecondary"
     67                 android:singleLine="true"
     68                 android:drawablePadding="4dip"
     69                 android:fadingEdge="horizontal"
     70                 android:fadingEdgeLength="3dip"
     71                 android:ellipsize="marquee" />
     72 
     73         </LinearLayout>
     74 
     75         <View
     76             android:id="@+id/contact_tile_horizontal_divider"
     77             android:layout_width="match_parent"
     78             android:layout_height="1px"
     79             android:background="?android:attr/listDivider"
     80             android:layout_below="@id/image_container" />
     81 
     82     </RelativeLayout>
     83 
     84 </view>
     85