android - Use color ints, as opposed to color resource ints, for SwipeRefreshLayout? -
i have colors dynamically generated in app, based off of user preferences. used these colors in chrisbane's actionbar-pulltorefresh library, since library no longer being developed, i'm trying move on swiperefreshlayout. however, swiperefreshlayout seems take color resource ids, opposed ints directly represent colors, , such can't find way color progress bar. there i'm missing in swiperefreshlayout allow me need do?
not sure v19 support library, v20 1 has following methods:
public void setcolorschemeresources(int colorres1, int colorres2, int colorres3, int colorres4)
which allows set colors resource. following method exists, takes colors:
public void setcolorschemecolors(int color1, int color2, int color3, int color4)
the second 1 answer
Comments
Post a Comment