final Window win = mFragment.getActivity().getWindow();
final WindowManager.LayoutParams params = win.getAttributes();

params.flags |= WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED;

win.setAttributes(params);

相关文章:

  • 2022-12-23
  • 2021-09-15
  • 2021-09-11
  • 2021-08-09
  • 2021-04-29
  • 2021-11-29
  • 2021-12-15
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案