Android Build a Simple Android App with Java Improving Our Code Dynamically Changing the Background Color

setBackground (android.graphics.drawable.Drawable) in View cannot be applied to (int)

color issues

Hi Katrina. I believe you should call setBackgroundColor() but can you share your code for your FunFactsActivity please? Thanks

1 Answer

Phillip Seryazi
Phillip Seryazi
2,375 Points

Hi Katrina could you please share your code for more context.