1

I want to give color to relative layout as setBackgroundColor() and the color value is like "#ffffff" and setBackgroundColor() dosent accept string value

DEEPAK
  • 1,364
  • 10
  • 24

1 Answers1

0

You can Use the below code:-

Relativelayout.setBackgroundColor(Color.parseColor("#ffffff"))
Venkatesh
  • 190
  • 4
  • 9