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

前端 未结 11 1744
遥遥无期
遥遥无期 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:47

    I solved the same problem by add android:elevation="1dp" to which view you want it over another. But it can't display below 5.0, and it will have a little shadow, if you can accept it, it's OK.

    So, the most correct solution which is @kcoppock said.

提交回复
热议问题