Add to MaterialLoadingBar method setColor (#111)
This commit is contained in:
parent
31973bf99e
commit
8a892136f0
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue