Add to MaterialLoadingBar method setColor (#111)

This commit is contained in:
maxbach 2017-12-28 15:20:19 +03:00 committed by Gavriil Sitnikov
parent 31973bf99e
commit 8a892136f0
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ package ru.touchin.roboswag.components.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageView;
@ -106,5 +107,14 @@ public class MaterialLoadingBar extends AppCompatImageView {
progressDrawable.stop();
super.onDetachedFromWindow();
}
/**
* Set color of loader.
*
* @param colorInt Color of loader to be set.
*/
public void setColor(@ColorInt final int colorInt) {
progressDrawable.setColor(colorInt);
}
}