From c987e00fa84f8997c07e8cb2d413897ae1d41b14 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 29 May 2014 13:07:53 -0700 Subject: 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 --- src/com/android/dialer/calllog/CallLogAdapter.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src') 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); } /** -- cgit v1.2.3