baoyongzhang / android-PullRefreshLayout

This component like SwipeRefreshLayout, it is more beautiful than SwipeRefreshLayout.
MIT License
2.06k stars 515 forks source link

ColorScheme Showing Me different Colors #26

Closed tonespy closed 9 years ago

tonespy commented 9 years ago
   int[] colors = {#FFFFFF, #AFAFAF, #838383, #000000}; I use my Color resource not HEXs
   swipeRefreshLayout.setColorSchemeColors(colors);

But whenever I use that, I get a purplish color, but what I want is a white, light grey, dark_grey and a black. Why?

baoyongzhang commented 9 years ago

You need use Color.rgb() or Color.argb(), like this:

int[] colors = {Color.rgb(0xFF, 0xFF, 0xFF), Color.rgb(0xAF, 0xAF, 0xAF), Color.rgb(0x83, 0x83, 0x83), Color.rgb(0x00, 0x00, 0x00)};
swipeRefreshLayout.setColorSchemeColors(colors);
tonespy commented 9 years ago

Thanks