Ti.SwipeRefreshLayout
Ti.SwipeRefreshLayout copied to clipboard
Set the color through JS
I'd like to be able to set the colors through JS instead of having to use the XML. Would that be possible?
From programming point of view, it should be configurable from module's accessor method, rather than Android's resources xml. Can you please make color changeable through module's accessor method?
Originally that was what I intended to do, but upon looking at the source code for the android support v4 library, I didn't find the two methods (setColorSchemeColors and setColorSchemeResources) in the official documentation which would allow for setting the color scheme outside of the XML.
I'm not an Android expert but what about this then? http://android-er.blogspot.nl/2014/07/set-color-scheme-of-progress-animation.html?m=1
Also: https://code.google.com/p/android/issues/detail?id=68148
+1