Android: change LayoutParams of View added by WindowManager

前端 未结 2 766
我寻月下人不归
我寻月下人不归 2021-02-19 16:26

I have overlay View managed by WindowManager, just like in this question.

Briefly, it looks like this:

WindowManager wm = (Wind         


        
2条回答
  •  醉话见心
    2021-02-19 17:00

    WindowManager has an updateViewLayout() member... surely that's exactly what you want?

    windowManager.updateViewLayout(my_view, my_view_layout_params);
    

提交回复
热议问题