I\'d like to create a rectangle shape with two solid colors (horizontally) to achieve something like this:
This will give you two colors half and half vertically. Put this code in a drawable resource.
drawable