How to dynamically change the background LinearLayout?
Did you try one of these :
yourLayout.setBackgroundColor(int color);
yourLayout.setBackgroundDrawable(Drawable d);
yourLayout.setBackgroundResource(int resid);
and if does not refresh on its own, this should give it a boost :
yourLayout.invalidate();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With