Layout Layers? Z-Axis?

后端 未结 2 449
眼角桃花
眼角桃花 2020-11-29 05:22

I have seen numerous applications that use layering in their layouts. When I speak of layering I am referring to layers in the z-axis relative to the view of the user. One s

2条回答
  •  攒了一身酷
    2020-11-29 05:53

    Small addition to previous answer: to prevent onClick events on bottom "layer" set attribute clickable="true" to top "layer"

    
    

    Otherwise, buttons on something with "click" events can be pressed through top layer.

    I found this issue when I have tried to cover UI by RelativeLayout layer with half-transparent background.

提交回复
热议问题