Ti.SwipeRefreshLayout icon indicating copy to clipboard operation
Ti.SwipeRefreshLayout copied to clipboard

Set the color through JS

Open FokkeZB opened this issue 10 years ago • 5 comments

I'd like to be able to set the colors through JS instead of having to use the XML. Would that be possible?

FokkeZB avatar Aug 20 '14 06:08 FokkeZB

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?

vatsalengg avatar Aug 26 '14 08:08 vatsalengg

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.

raymondkam avatar Aug 26 '14 14:08 raymondkam

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

FokkeZB avatar Aug 26 '14 19:08 FokkeZB

Also: https://code.google.com/p/android/issues/detail?id=68148

FokkeZB avatar Aug 26 '14 19:08 FokkeZB

+1

AppWerft avatar Feb 15 '16 18:02 AppWerft