How to send view to back ? How to control the z-order programmatically?

后端 未结 12 990
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 04:12

I have a problem to send the view to back. In Android we have a method like bringToFront(), to place the view on top of the another view. Like that, I want to p

12条回答
  •  [愿得一人]
    2020-12-05 04:15

    If you're using appCompat library, there's another way to change Z order for devices lower than 21 API level:

    ViewCompat.setTranslationZ(view, zValue);
    

提交回复
热议问题