use of com.yalantis.phoenix.refresh_view.SunRefreshView in project Phoenix by Yalantis.
the class PullToRefreshView method setRefreshStyle.
public void setRefreshStyle(int type) {
setRefreshing(false);
switch(type) {
case STYLE_SUN:
mBaseRefreshView = new SunRefreshView(getContext(), this);
break;
default:
throw new InvalidParameterException("Type does not exist");
}
mRefreshView.setImageDrawable(mBaseRefreshView);
}
Aggregations