Pixel Perfect for Favorites in Phone app.
-Reduced View Count
-Added Horizontal Dividers
-Added Vertical Dividers
-Adjusted Sizing
-Adjusted Colors
-Adjusted Spacing and centering
-QuickContactBadge is no longer under shadowbox
Bug: 5062027
Bug: 4686440
Change-Id: Ib72ac41f93814af2646ab9e59b1beb11800cc477
diff --git a/res/layout/contact_tile_starred.xml b/res/layout/contact_tile_starred.xml
index 3b74946..5fdfe65 100644
--- a/res/layout/contact_tile_starred.xml
+++ b/res/layout/contact_tile_starred.xml
@@ -15,10 +15,13 @@
-->
<view
xmlns:android="http://schemas.android.com/apk/res/android"
- class="com.android.contacts.list.ContactTileStarredView"
- style="@style/ContactTileStarred" >
+ android:background="@null"
+ android:paddingBottom="1dip"
+ android:paddingRight="1dip"
+ class="com.android.contacts.list.ContactTileStarredView" >
<RelativeLayout
+ android:id="@+id/contact_tile_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
@@ -28,40 +31,42 @@
android:layout_height="match_parent"
android:scaleType="centerCrop" />
- <View
- android:id="@+id/contact_tile_background"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/contact_tile_shadowbox_height"
+ android:orientation="vertical"
+ android:background="@color/contact_tile_shadow_box_color"
android:layout_alignParentBottom="true"
- style="@style/ContactTileStarredShadowBox" />
+ android:gravity="center_vertical"
+ android:paddingRight="8dip"
+ android:paddingLeft="8dip">
- <ImageView
- android:id="@+id/contact_tile_presence"
- android:layout_width="16dip"
- android:layout_height="16dip"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="8dip"
- android:layout_marginBottom="10dip" />
+ <TextView
+ android:id="@+id/contact_tile_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@android:color/white"
+ android:textSize="16sp"
+ android:singleLine="true"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="3dip"
+ android:ellipsize="marquee" />
- <TextView
- android:id="@+id/contact_tile_name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignLeft="@id/contact_tile_presence"
- android:layout_above="@id/contact_tile_presence"
- android:textColor="@android:color/white"
- stlye="@style/ContactTileStarredName" />
+ <TextView
+ android:id="@+id/contact_tile_status"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/people_contact_tile_status_color"
+ android:singleLine="true"
+ android:drawablePadding="4dip"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="3dip"
+ android:ellipsize="marquee" />
- <TextView
- android:id="@+id/contact_tile_status"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/contact_tile_presence"
- android:layout_below="@id/contact_tile_name"
- android:layout_marginLeft="4dip"
- style="@style/ContactTileStatusText" />
+ </LinearLayout>
- <ImageButton
+ <View
android:id="@+id/contact_tile_push_state"
android:layout_width="match_parent"
android:layout_height="match_parent"