修复部分弹框没有动画效果

This commit is contained in:
zlzw 2022-11-23 18:01:33 +08:00
parent 1eca5b0309
commit fc1bada607
2 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
@Override
protected void setWindowAttributes(Window window) {
window.setWindowAnimations(R.style.bottomToTopAnim);
WindowManager.LayoutParams params = window.getAttributes();
window.setWindowAnimations(R.style.bottomToTopAnim);
params.width = WindowManager.LayoutParams.MATCH_PARENT;

View File

@ -90,6 +90,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
@Override
protected void setWindowAttributes(Window window) {
window.setWindowAnimations(R.style.bottomToTopAnim);
WindowManager.LayoutParams params = window.getAttributes();
params.width = ActionBar.LayoutParams.MATCH_PARENT;
params.height = DpUtil.dp2px(460);