From f3db08a45846fd7a99460ea4eb4e10fa58499cd1 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 18 Mar 2014 12:03:35 -0700 Subject: Swap 9 patch for contact tiles Tweak contact tile dimensions slightly Bug: 13526106 Change-Id: I7ae82dc1815c95577c204dd6ed955d0bf1bc0dc3 --- res/drawable-hdpi/ic_contacts_tiles.9.png | Bin 0 -> 144 bytes res/drawable-mdpi/ic_contacts_tiles.9.png | Bin 0 -> 138 bytes res/drawable-xhdpi/ic_contacts_tiles.9.png | Bin 0 -> 149 bytes res/drawable-xxhdpi/ic_contacts_tiles.9.png | Bin 0 -> 1047 bytes res/layout/phone_favorite_tile_view.xml | 3 +-- res/values/dimens.xml | 2 +- src/com/android/dialer/list/PhoneFavoriteTileView.java | 10 +++++----- 7 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 res/drawable-hdpi/ic_contacts_tiles.9.png create mode 100644 res/drawable-mdpi/ic_contacts_tiles.9.png create mode 100644 res/drawable-xhdpi/ic_contacts_tiles.9.png create mode 100644 res/drawable-xxhdpi/ic_contacts_tiles.9.png diff --git a/res/drawable-hdpi/ic_contacts_tiles.9.png b/res/drawable-hdpi/ic_contacts_tiles.9.png new file mode 100644 index 000000000..572fdb890 Binary files /dev/null and b/res/drawable-hdpi/ic_contacts_tiles.9.png differ diff --git a/res/drawable-mdpi/ic_contacts_tiles.9.png b/res/drawable-mdpi/ic_contacts_tiles.9.png new file mode 100644 index 000000000..343053a60 Binary files /dev/null and b/res/drawable-mdpi/ic_contacts_tiles.9.png differ diff --git a/res/drawable-xhdpi/ic_contacts_tiles.9.png b/res/drawable-xhdpi/ic_contacts_tiles.9.png new file mode 100644 index 000000000..5a5658711 Binary files /dev/null and b/res/drawable-xhdpi/ic_contacts_tiles.9.png differ diff --git a/res/drawable-xxhdpi/ic_contacts_tiles.9.png b/res/drawable-xxhdpi/ic_contacts_tiles.9.png new file mode 100644 index 000000000..4e6872d98 Binary files /dev/null and b/res/drawable-xxhdpi/ic_contacts_tiles.9.png differ diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml index 54f9de787..952bb2a2a 100644 --- a/res/layout/phone_favorite_tile_view.xml +++ b/res/layout/phone_favorite_tile_view.xml @@ -26,7 +26,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="true" - android:background="@drawable/ic_tile_for_recents_and_contact_tile"> + android:background="@drawable/ic_contacts_tiles"> 36dp 67% 10dp - 9dp + 8dp 6dp 6dp 8dp diff --git a/src/com/android/dialer/list/PhoneFavoriteTileView.java b/src/com/android/dialer/list/PhoneFavoriteTileView.java index 9761fc311..e89321c48 100644 --- a/src/com/android/dialer/list/PhoneFavoriteTileView.java +++ b/src/com/android/dialer/list/PhoneFavoriteTileView.java @@ -48,13 +48,13 @@ public abstract class PhoneFavoriteTileView extends ContactTileView { private static final String TAG = PhoneFavoriteTileView.class.getSimpleName(); private static final boolean DEBUG = false; - // These parameters instruct the photo manager to display the default image/letter at 65% of - // its normal size, and vertically offset upwards 17% towards the top of the letter tile, to + // These parameters instruct the photo manager to display the default image/letter at 70% of + // its normal size, and vertically offset upwards 14% towards the top of the letter tile, to // make room for the contact name and number label at the bottom of the image. - private static final float DEFAULT_IMAGE_LETTER_OFFSET = -0.17f; - private static final float DEFAULT_IMAGE_LETTER_SCALE = 0.65f; + private static final float DEFAULT_IMAGE_LETTER_OFFSET = -0.14f; + private static final float DEFAULT_IMAGE_LETTER_SCALE = 0.70f; - /** Length of all animations in miniseconds. */ + /** Length of all animations in milliseconds. */ private int mAnimationDuration; /** The view that holds the front layer of the favorite contact card. */ -- cgit v1.2.3