summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-09-25 20:53:49 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-25 20:53:49 +0000
commitd8129f29041508c3a9448097e010ca3b8b2bfa0a (patch)
tree3d5f33375c8fa561d96aea81d01f83f332b87c51
parentae64973bcb74f061e487b52f29b80efbe8cf8b41 (diff)
parent3a6192bb102e718e401d8a5364ee223df2f753e3 (diff)
am 3a6192bb: am 495e70b7: Update padding base settings for dialer
* commit '3a6192bb102e718e401d8a5364ee223df2f753e3': Update padding base settings for dialer
-rw-r--r--res/layout/dialer_preferences.xml8
-rw-r--r--res/values/dimens.xml3
-rw-r--r--src/com/android/dialer/settings/DialerSettingsActivity.java6
3 files changed, 1 insertions, 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">
- <ImageView
- android:id="@+id/icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dip"
- android:layout_marginEnd="6dip"
- android:layout_gravity="center" />
-
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index e48720edd..383a8faa6 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -137,9 +137,8 @@
<dimen name="empty_list_message_text_size">16sp</dimen>
<!-- Dimensions for individual preference cards -->
- <dimen name="preference_padding_top">18dp</dimen>
+ <dimen name="preference_padding_top">16dp</dimen>
<dimen name="preference_padding_bottom">16dp</dimen>
<dimen name="preference_side_margin">16dp</dimen>
- <dimen name="preference_list_top_padding">4dp</dimen>
<dimen name="preference_summary_line_spacing_extra">4dp</dimen>
</resources>
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<Header> {
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)) {