in android doc https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html#setColorSchemeColors(int...)
for set color schema have three methods
what is difference between 3 methods?
setColorScheme(int... colors)
setColorSchemeColors(int... colors)
setColorSchemeResources(int... colorResIds)
Looking at the API docs, I can see that setColorScheme
is deprecated in favour of setColorSchemeResources
. So forget that first one.
The different between setColorSchemeColors
and setColorSchemeResources
is that the former takes colour values as the parameters and the latter takes resource IDs.
So.
setColorScheme
- do not use thissetColorSchemeColors
- use this when setting the specific colour valuessetColorSchemeResources
- use this when setting resource references to colours.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