According to what I\'ve read, you can use a gradientDrawable and have three colors set for it, for example:
I think the below are possible solutions.
You can create your own GradientDrawable by extending the GradientDrawable Class refer to the below doc.
GradientDrawable Class
Gradient Drawable Documentation