summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-16 15:14:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-16 15:14:39 -0800
commit94677083ab4c56ffef4a8a68d011d19333ab46c2 (patch)
tree789dbddd41fcd337cd9b121ad868dd34e259ed4c /core/java
parent6e72ff9082f82885d738f637d40bfe43d267107a (diff)
parentfb13abd800cd610c7f46815848545feff83e5748 (diff)
downloadframeworks_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.java4
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(