I want to create a border for a linearLayout. So I decide to create a shape. I want the border to have a gradient. The following is not doing it. It fills the rectangle and
This would be the appropriate solution to what you wanna do. It includes gradient in stroke as well as a gradient in fill colour.