I'm working with SwipeRefreshLayout
.
I know how to setColorScheme
dynamically.
Is it possible to set the scheme color attribute
of SwipeRefreshLayout in XML?
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.
Yes, it is possible just set the setColorSchemesColors method
swipeRefreshLayout.setColorSchemeColors(Color.BLUE, Color.YELLOW, Color.BLUE);