I want to change the background color of my Main-View (not a Button or a Text-View) just the real background which is usually black... I got this code:
view.
i don't know if it's the answer to your question but you can try setting the background color in the xml layout like this. It is easy, it always works
You can also do more fancy things with backgrounds by creating an xml background file with gradients which are cool and semi transparent, and refer to it for other use see example below:
the background.xml layout
-
your layout