Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11054 from t895/swipe-refresh
Android: Change swipe refresh colors to match other component colors
  • Loading branch information
JosJuice committed Sep 12, 2022
2 parents 0586973 + 63ff3c3 commit 14f427d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -65,8 +65,9 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState)

// Set theme color to the refresh animation's background
mSwipeRefresh.setProgressBackgroundColorSchemeColor(
MaterialColors.getColor(mSwipeRefresh, R.attr.colorSurfaceVariant));
mSwipeRefresh.setColorSchemeColors(MaterialColors.getColor(mSwipeRefresh, R.attr.colorPrimary));
MaterialColors.getColor(mSwipeRefresh, R.attr.colorPrimary));
mSwipeRefresh.setColorSchemeColors(
MaterialColors.getColor(mSwipeRefresh, R.attr.colorOnPrimary));

mSwipeRefresh.setOnRefreshListener(mOnRefreshListener);

Expand Down

0 comments on commit 14f427d

Please sign in to comment.