posted 12 years ago
down vote favorite
I have a layout- an ImageView with TextViews on its top and bottom. Now I want to add a rectangular vertical bar (to the left or right of this setup) which changes its height (and also colour) from bottom to top. At the moment, I have used a TextView which increases height from top to bottom (I couldn't make it the other way round).
I don't know how to use graphics to draw a rectangle and then add that rectangle to the above xml layout (with an ImageView and 2 TextViews).
Please suggest a way to do this-either to increase the height of TextView from bottom to top or a different better way than what I am following.
Thank you for your time.