Android: change LayoutParams of View added by WindowManager

前端 未结 2 748
我寻月下人不归
我寻月下人不归 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);
    
    0 讨论(0)
  • 2021-02-19 17:02

    You can use this:

    wm.updateViewLayout(my_view,my_view_layout_params);
    
    0 讨论(0)
提交回复
热议问题