Merge pull request #11054 from t895/swipe-refresh
Android: Change swipe refresh colors to match other component colors
This commit is contained in:
commit
14f427d4cd
|
@ -65,8 +65,9 @@ public final class PlatformGamesFragment extends Fragment implements PlatformGam
|
||||||
|
|
||||||
// Set theme color to the refresh animation's background
|
// Set theme color to the refresh animation's background
|
||||||
mSwipeRefresh.setProgressBackgroundColorSchemeColor(
|
mSwipeRefresh.setProgressBackgroundColorSchemeColor(
|
||||||
MaterialColors.getColor(mSwipeRefresh, R.attr.colorSurfaceVariant));
|
MaterialColors.getColor(mSwipeRefresh, R.attr.colorPrimary));
|
||||||
mSwipeRefresh.setColorSchemeColors(MaterialColors.getColor(mSwipeRefresh, R.attr.colorPrimary));
|
mSwipeRefresh.setColorSchemeColors(
|
||||||
|
MaterialColors.getColor(mSwipeRefresh, R.attr.colorOnPrimary));
|
||||||
|
|
||||||
mSwipeRefresh.setOnRefreshListener(mOnRefreshListener);
|
mSwipeRefresh.setOnRefreshListener(mOnRefreshListener);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue