How to bring view in front of everything?

后端 未结 16 2202
刺人心
刺人心 2020-11-30 01:31

I have activity and a lot of widgets on it, some of them have animations and because of the animations some of the widgets are moving (translating) one over another. For exa

16条回答
  •  借酒劲吻你
    2020-11-30 01:55

    If you are using a LinearLayout you should call myView.bringToFront() and after you should call parentView.requestLayout() and parentView.invalidate() to force the parent to redraw with the new child order.

提交回复
热议问题