Keeping track of View added to WindowManager (no findViewById() function?)

后端 未结 4 2061
无人及你
无人及你 2020-12-29 06:50

In my service I add a view to WindowManager with addView(). When I\'m ready to hide the view, I call removeView() using the View

4条回答
  •  有刺的猬
    2020-12-29 06:59

    To check if view has been succesfully attached to Windows Manager, or is still attached, you can use view.isShown();.

提交回复
热议问题