Merge "Fix Spinners that don't have a hard pixel width set. getDimensionPixelSize -> getLayoutDimension"

This commit is contained in:
Ben Komalo
2010-10-15 14:10:57 -07:00
committed by Android (Google) Code Review

View File

@@ -153,7 +153,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {
DropdownPopup popup = new DropdownPopup(context, attrs, defStyle, hintResource);
popup.setWidth(a.getDimensionPixelSize(
popup.setWidth(a.getLayoutDimension(
com.android.internal.R.styleable.Spinner_dropDownWidth,
ViewGroup.LayoutParams.WRAP_CONTENT));
popup.setBackgroundDrawable(a.getDrawable(