From 495e70b7ae73100be2d5d2b356a810035b4f45f2 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Thu, 25 Sep 2014 11:40:55 -0700 Subject: Update padding base settings for dialer 2. Adjusted the padding around the base call settings preference page to match the settings on the sub preferences Bug: 17529308 Change-Id: Iba1c6cfb4057cf56e8250abea25602aa2ce4eac8 --- res/layout/dialer_preferences.xml | 8 -------- res/values/dimens.xml | 3 +-- src/com/android/dialer/settings/DialerSettingsActivity.java | 6 ------ 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/res/layout/dialer_preferences.xml b/res/layout/dialer_preferences.xml index bbb79bcb7..023b12251 100644 --- a/res/layout/dialer_preferences.xml +++ b/res/layout/dialer_preferences.xml @@ -25,14 +25,6 @@ android:gravity="center_vertical" android:paddingEnd="?android:attr/scrollbarSize"> - - 16sp - 18dp + 16dp 16dp 16dp - 4dp 4dp diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java index db4513594..f7a92d748 100644 --- a/src/com/android/dialer/settings/DialerSettingsActivity.java +++ b/src/com/android/dialer/settings/DialerSettingsActivity.java @@ -36,9 +36,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPreferences = PreferenceManager.getDefaultSharedPreferences(this); - final int topPadding = getResources().getDimensionPixelSize( - R.dimen.preference_list_top_padding); - getListView().setPadding(0, topPadding, 0, 0); } @Override @@ -113,7 +110,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity { */ private static class HeaderAdapter extends ArrayAdapter
{ static class HeaderViewHolder { - ImageView icon; TextView title; TextView summary; } @@ -133,7 +129,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity { if (convertView == null) { view = mInflater.inflate(R.layout.dialer_preferences, parent, false); holder = new HeaderViewHolder(); - holder.icon = (ImageView) view.findViewById(R.id.icon); holder.title = (TextView) view.findViewById(R.id.title); holder.summary = (TextView) view.findViewById(R.id.summary); view.setTag(holder); @@ -144,7 +139,6 @@ public class DialerSettingsActivity extends AnalyticsPreferenceActivity { // All view fields must be updated every time, because the view may be recycled Header header = getItem(position); - holder.icon.setImageResource(header.iconRes); holder.title.setText(header.getTitle(getContext().getResources())); CharSequence summary = header.getSummary(getContext().getResources()); if (!TextUtils.isEmpty(summary)) { -- cgit v1.2.3