diff options
author | Romain Guy <romainguy@google.com> | 2011-01-16 15:14:39 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-16 15:14:39 -0800 |
commit | 94677083ab4c56ffef4a8a68d011d19333ab46c2 (patch) | |
tree | 789dbddd41fcd337cd9b121ad868dd34e259ed4c /core/java | |
parent | 6e72ff9082f82885d738f637d40bfe43d267107a (diff) | |
parent | fb13abd800cd610c7f46815848545feff83e5748 (diff) | |
download | frameworks_base-94677083ab4c56ffef4a8a68d011d19333ab46c2.zip frameworks_base-94677083ab4c56ffef4a8a68d011d19333ab46c2.tar.gz frameworks_base-94677083ab4c56ffef4a8a68d011d19333ab46c2.tar.bz2 |
Merge "Fix 9patch rendering in ExpandableListView." into honeycomb
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/widget/ExpandableListView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/widget/ExpandableListView.java b/core/java/android/widget/ExpandableListView.java index 3d21048..472a335 100644 --- a/core/java/android/widget/ExpandableListView.java +++ b/core/java/android/widget/ExpandableListView.java @@ -22,7 +22,6 @@ import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; -import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.Parcel; import android.os.Parcelable; @@ -212,6 +211,9 @@ public class ExpandableListView extends ListView { .getDimensionPixelSize(com.android.internal.R.styleable.ExpandableListView_indicatorLeft, 0); mIndicatorRight = a .getDimensionPixelSize(com.android.internal.R.styleable.ExpandableListView_indicatorRight, 0); + if (mIndicatorRight == 0) { + mIndicatorRight = mIndicatorLeft + mGroupIndicator.getIntrinsicWidth(); + } mChildIndicatorLeft = a.getDimensionPixelSize( com.android.internal.R.styleable.ExpandableListView_childIndicatorLeft, CHILD_INDICATOR_INHERIT); mChildIndicatorRight = a.getDimensionPixelSize( |