setbackgroundcolor android studio code example
Example 1: android studio set background color
YourView.setBackgroundColor(Color.argb(255, 255, 255, 255));
Example 2: setbackground color hexadecimal android
view.setBackgroundColor(0x00FF00)
YourView.setBackgroundColor(Color.argb(255, 255, 255, 255));
view.setBackgroundColor(0x00FF00)