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.setBackgroundColor(0xfff00000);
This is inside an OnClickListener
, but it just changes the background of the Button.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…