Skip to content

Commit

Permalink
fix circle spinner color style
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Nov 12, 2014
1 parent 52d5ec2 commit 0bb12ed
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ public void init(Activity activity, SwipeRefreshLayout swipeRefreshLayout, Refre
mRefreshListener = listener;
mSwipeRefreshLayout = swipeRefreshLayout;
mSwipeRefreshLayout.setOnRefreshListener(this);
final TypedArray styleAttrs = obtainStyledAttrsFromThemeAttr(activity, R.attr.refreshIndicatorColor,
final TypedArray styleAttrs = obtainStyledAttrsFromThemeAttr(activity, R.attr.swipeToRefreshStyle,
R.styleable.RefreshIndicator);
int color = styleAttrs.getColor(R.styleable.RefreshIndicator_refreshIndicatorColor,
android.R.color.holo_blue_dark);
mSwipeRefreshLayout.setProgressBackgroundColor(color);
mSwipeRefreshLayout.setColorSchemeResources(android.R.color.white, android.R.color.white, android.R.color.white,
android.R.color.white);
mSwipeRefreshLayout.setColorSchemeColors(color, color, color, color);
}

public void setRefreshing(boolean refreshing) {
Expand Down

0 comments on commit 0bb12ed

Please sign in to comment.