I have a linear layout which consists of imageview and textview , one below another in a linear layout.
There is a way to use LinearLayout. Just set the marginTop of your previous element to the corresponding negative value, and make sure the element you want on top is after the element you want below in your XML.