Android: How to draw free on top of anything (any activity)

后端 未结 2 885
不知归路
不知归路 2021-01-30 23:16

How do you draw a view on top of all other activities regardless of what they are showing and without using transparent activities or consuming its touch events.

Its lik

2条回答
  •  囚心锁ツ
    2021-01-30 23:45

    Take a look at WindowManager. You can do something like (WindowManager)mContext.getSystemService("window"); if you want to get the root view and use the method addView(view, params) if you want to add a view.

提交回复
热议问题