我希望将我的自定义对话框动画化为从特定点出现,但我无法为对话框设置动画。
该对话框是一个基本的 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 风格被