Android Simple way for User Color Selections
Posted
by miannelle
on Stack Overflow
See other posts from Stack Overflow
or by miannelle
Published on 2010-05-27T16:24:10Z
Indexed on
2010/05/28
7:21 UTC
Read the original article
Hit count: 254
android
How can you change application colors on the fly?
I am currently using the following to change the background: LinearLayout mScreen = (LinearLayout) findViewById(R.id.main); mScreen.setBackgroundColor( mycolor );
I tried to use Style's to change the text using: @color/white
The problem is that Spinners/Buttons and Spinner-Popup-Lists all change to white text as well, making them unreadable. I have over 20 Classes in my app that all need to be able to change color combination's.
© Stack Overflow or respective owner