Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2014 09:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Methods in DefaultHeaderTransformation adjusted to make the ActionBar-PTR progress bar color styling work again
public void setProgressBarColor(int color) {
if (color != mProgressDrawableColor) {
mProgressDrawableColor = color;
private void applyProgressBarSettings() {
if (mHeaderProgressBar != null) {
final int strokeWidth = mHeaderProgressBar.getResources()
new SmoothProgressDrawable.Builder(mHeaderProgressBar.getContext())
ShapeDrawable shape = new ShapeDrawable();
shape.setShape(new RectShape());
ClipDrawable clipDrawable = new ClipDrawable(shape, Gravity.CENTER, ClipDrawable.HORIZONTAL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment