Loading core/java/android/widget/ProgressBar.java +4 −3 Original line number Diff line number Diff line Loading @@ -177,7 +177,8 @@ public class ProgressBar extends View { Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable); if (drawable != null) { drawable = tileify(drawable, false); // guess mMaxHeight. but allow XML layout to override this. // Calling this method can set mMaxHeight, make sure the corresponding // XML attribute for mMaxHeight is read after calling this method setProgressDrawable(drawable); } Loading Loading @@ -423,8 +424,8 @@ public class ProgressBar extends View { if (d != null) { d.setCallback(this); // without this code, progress bar height will be updated. int drawableHeight = drawable.getMinimumHeight(); // Make sure the ProgressBar is always tall enough int drawableHeight = d.getMinimumHeight(); if (mMaxHeight < drawableHeight) { mMaxHeight = drawableHeight; requestLayout(); Loading Loading
core/java/android/widget/ProgressBar.java +4 −3 Original line number Diff line number Diff line Loading @@ -177,7 +177,8 @@ public class ProgressBar extends View { Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable); if (drawable != null) { drawable = tileify(drawable, false); // guess mMaxHeight. but allow XML layout to override this. // Calling this method can set mMaxHeight, make sure the corresponding // XML attribute for mMaxHeight is read after calling this method setProgressDrawable(drawable); } Loading Loading @@ -423,8 +424,8 @@ public class ProgressBar extends View { if (d != null) { d.setCallback(this); // without this code, progress bar height will be updated. int drawableHeight = drawable.getMinimumHeight(); // Make sure the ProgressBar is always tall enough int drawableHeight = d.getMinimumHeight(); if (mMaxHeight < drawableHeight) { mMaxHeight = drawableHeight; requestLayout(); Loading