我正在开发一个 Harmony 应用程序,我想为 Dialog 窗口设置动画,
这段代码来自 android,我想添加这种类型的动画
Window dialogWindow = dialog.getWindow();
dialogWindow.setWindowAnimations(R.style.CustomDialogAnimation);
// properties that needs to be attached to Dialog window
duration="75"
fromXScale="0"
fromYScale="0"
toXScale="1"
toYScale="1"
我没有找到任何匹配的文档,例如setWindowAnimations。
我尝试编写此代码,但在获得对话窗口后陷入了死胡同。如何将动画属性添加到此对话框窗口。
CommonDialog commonDialog = new CommonDialog(getContext);
Window dialogWindow = commonDialog.getWindow();
有没有其他方法来编码这个?