diff options
author | Andrew Lee <anwlee@google.com> | 2014-05-29 13:07:53 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-05-29 13:09:30 -0700 |
commit | c987e00fa84f8997c07e8cb2d413897ae1d41b14 (patch) | |
tree | 50e255d4b5db604650db972dd4d96cd78b12cd4b /src | |
parent | 21c7c2377da4898b52b268124b21413b1456ec5d (diff) |
Adjust call log text padding.
- Set elegant text height to false on the name and location/date.
- Add margin below the name TextView.
Bug: 15196725
Change-Id: Ia1735cb75194ab8b0418e138f4f11ec17ae626db
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 475262055..924a17fc2 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -578,7 +578,15 @@ public class CallLogAdapter extends GroupingListAdapter protected View newChildView(Context context, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.call_log_list_item, parent, false); - findAndCacheViews(view); + + // Get the views to bind to and cache them. + CallLogListItemViews views = CallLogListItemViews.fromView(view); + view.setTag(views); + + // Set text height to false on the TextViews so they don't have extra padding. + views.phoneCallDetailsViews.nameView.setElegantTextHeight(false); + views.phoneCallDetailsViews.callLocationAndDate.setElegantTextHeight(false); + return view; } @@ -599,9 +607,6 @@ public class CallLogAdapter extends GroupingListAdapter } private void findAndCacheViews(View view) { - // Get the views to bind to. - CallLogListItemViews views = CallLogListItemViews.fromView(view); - view.setTag(views); } /** |