I want to make GradientDrawable for background like the image below.
Linear Gradient with same color in the top and bottom.
I made gradient drawable with start, center and end colors but couldn't set the size of center color.
I also tried <Layer-list> with 2 gradient shape-s but one overlays over the other and either I have gradient on the top or on the bottom.
Can anyone help me ?

ShapeDrawable+ShapeDrawable.ShaderFactory- pskinkShapeDrawable.ShaderFactory? - pskinkLinearGradientconstructor - pskink