Placing/Overlapping(z-index) a view above another view in android

前端 未结 11 1606
遥遥无期
遥遥无期 2020-11-22 17:07

I have a linear layout which consists of imageview and textview , one below another in a linear layout.



        
11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 17:35

    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.

    
    
    
    
    
    

提交回复
热议问题