I have a linear layout which consists of imageview and textview , one below another in a linear layout.
You can use view.setZ(float) starting from API level 21. Here you can find more info.
view.setZ(float)