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

后端 未结 12 1016
隐瞒了意图╮
隐瞒了意图╮ 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:30

    Call bringToFront() on the view you want to get in the front, and then call the invalidate() method on all the view including the view which you want in the front. Repeat same for all the listeners.

    So when another view's listener will get called, the previous view will get invalidated and will be in background.

提交回复
热议问题