sách gpt4 ăn đã đi

android - 似乎 windowAnimationStyle 被忽略了,如何为自定义对话框设置动画?

In lại 作者:太空狗 更新时间:2023-10-29 14:13:46 30 4
mua khóa gpt4 giày nike

我希望将我的自定义对话框动画化为从特定点出现,但我无法为对话框设置动画。

该对话框是一个基本的 RelativeLayout,设置为 mở rộng Đối thoại 类中的布局。

正如这里的一些答案所建议的那样,我已经尝试将 windowAnimations 设置为它

final myCustomDialog dialog = new myCustomDialog(this); 
dialog.getWindow().getAttributes().windowAnimations = R.style.CustomDialogTheme;

编辑:在构造函数中设置主题似乎有效,但动画仍然无效

final myCustomDialog dialog = new myCustomDialog(this, R.style.CustomDialogTheme); 

CustomDialogTheme 风格被

Xem sitemap của VNExpress