WindowManager.LayoutParams p = (WindowManager.LayoutParams) view.getLayoutParams();
p.x=dx;
p.y=dy;
WindowManager mWindowManager = (WindowManager)getApplicationContext().getSystemService(Context.WINDOW_SERVICE);
mWindowManager.updateViewLayout(view, p);

 

 

详见popupwindow.update(int int int int)方法

相关文章:

  • 2021-09-27
  • 2021-10-17
  • 2022-12-23
  • 2021-12-27
  • 2021-11-19
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-01-15
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案