summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-12 12:07:40 -0700
committerYorke Lee <yorkelee@google.com>2014-03-14 13:16:47 -0700
commit8165cb1734a70c605580c51215b0441efaf04af7 (patch)
treebd6a5ff3524f912ccb30e424a6d117d52ad5d356 /src
parent80b0c11604ea909b66cd87c0fda55abc7d9ad721 (diff)
Slight UX tweaks to Dialer
* Add drawable and apply to dialpad fragment for shadow effect * Tweak name/number padding in tiles * Tweak default letter avatar placing in tiles * Add shadow for dialpad * Swap out 9patch drawable for recents * Add 9patch to contact tile Bug: 13421236 Bug: 13418523 Bug: 13421916 Bug: 13421236 Bug: 13419201 Bug: 13418712 Change-Id: I6ff8fe41d7e2d02db105bb542f425be13ae5fef7
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java2
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteTileView.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java b/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java
index e09fc7d41..e966f101d 100644
--- a/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java
+++ b/src/com/android/dialer/list/PhoneFavoriteMergedAdapter.java
@@ -345,7 +345,7 @@ public class PhoneFavoriteMergedAdapter extends BaseAdapter {
@Override
public void addView(View view) {
- view.setBackgroundResource(R.drawable.dialer_recent_card_bg);
+ view.setBackgroundResource(R.drawable.ic_tile_for_recents_and_contact_tile);
final FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
diff --git a/src/com/android/dialer/list/PhoneFavoriteTileView.java b/src/com/android/dialer/list/PhoneFavoriteTileView.java
index 16bf6293d..9761fc311 100644
--- a/src/com/android/dialer/list/PhoneFavoriteTileView.java
+++ b/src/com/android/dialer/list/PhoneFavoriteTileView.java
@@ -48,11 +48,11 @@ 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 70% of
- // its normal size, and vertically offset upwards 20% towards the top of the letter tile, to
+ // 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
// make room for the contact name and number label at the bottom of the image.
- private static final float DEFAULT_IMAGE_LETTER_OFFSET = -0.2f;
- private static final float DEFAULT_IMAGE_LETTER_SCALE = 0.70f;
+ private static final float DEFAULT_IMAGE_LETTER_OFFSET = -0.17f;
+ private static final float DEFAULT_IMAGE_LETTER_SCALE = 0.65f;
/** Length of all animations in miniseconds. */
private int mAnimationDuration;