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     android:background="@null"
     19     android:paddingBottom="1dip"
     20     android:paddingRight="1dip"
     21     class="com.android.contacts.list.ContactTileStarredView" >
     22 
     23     <RelativeLayout
     24         android:id="@+id/contact_tile_layout"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent" >
     27 
     28         <view
     29             class="com.android.contacts.list.ContactTileImageContainer"
     30             android:layout_width="match_parent"
     31             android:layout_height="match_parent">
     32             <ImageView
     33                  android:id="@+id/contact_tile_image"
     34                 android:layout_width="match_parent"
     35                 android:layout_height="match_parent"
     36                 android:scaleType="centerCrop" />
     37         </view>
     38 
     39         <LinearLayout
     40             android:layout_width="match_parent"
     41             android:layout_height="@dimen/contact_tile_shadowbox_height"
     42             android:orientation="vertical"
     43             android:background="@color/contact_tile_shadow_box_color"
     44             android:layout_alignParentBottom="true"
     45             android:gravity="center_vertical"
     46             android:paddingRight="8dip"
     47             android:paddingLeft="8dip">
     48 
     49             <TextView
     50                 android:id="@+id/contact_tile_name"
     51                 android:layout_width="wrap_content"
     52                 android:layout_height="wrap_content"
     53                 android:textColor="@android:color/white"
     54                 android:textSize="16sp"
     55                 android:singleLine="true"
     56                 android:fadingEdge="horizontal"
     57                 android:fadingEdgeLength="3dip"
     58                 android:ellipsize="marquee" />
     59 
     60             <TextView
     61                 android:id="@+id/contact_tile_status"
     62                 android:layout_width="wrap_content"
     63                 android:layout_height="wrap_content"
     64                 android:textAppearance="?android:attr/textAppearanceSmall"
     65                 android:textColor="@color/people_contact_tile_status_color"
     66                 android:singleLine="true"
     67                 android:drawablePadding="4dip"
     68                 android:paddingBottom="4dip"
     69                 android:fadingEdge="horizontal"
     70                 android:fadingEdgeLength="3dip"
     71                 android:layout_marginTop="-3dip"
     72                 android:ellipsize="marquee" />
     73 
     74         </LinearLayout>
     75 
     76        <View
     77             android:id="@+id/contact_tile_push_state"
     78             android:layout_width="match_parent"
     79             android:layout_height="match_parent"
     80             android:focusable="true"
     81             android:background="?android:attr/selectableItemBackground" />
     82 
     83     </RelativeLayout>
     84 
     85 </view>
     86