I'm working with SwipeRefreshLayout
.
I know how to setColorScheme
dynamically.
Is it possible to set the scheme color attribute
of SwipeRefreshLayout in XML?
This worked for me in 2021:
Note: setColorScheme
is deprecated now so use setColorSchemeResources
instead.
I set up my own colors in the xml and using them like swipeRefreshLayout.setColorSchemeResources(<color in xml>);
. Changing the color in the xml changes it everywhere.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With