g.setColor hex java code example Example: setbackground color hexadecimal android view.setBackgroundColor(0x00FF00)