我试图让自定义对话框显示为从文本视图向下滑动.这可能吗?我似乎无法将任何动画应用于对话框类.我在构造函数中尝试过这一行,但它没有效果:
.this.getWindow()setWindowAnimations(R.anim.paranimation);
我甚至不确定动画是否正确,但是一旦我看到它正在做什么,我就能调整它.为了完整起见,我会在下面列出它.我不是在寻找实际动画的帮助,只是寻找对话框的应用程序.
paranimation.xml:
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXDelta="-200%"
android:toXDelta="0%"
android:fromYDelta="200%"
android:toYDelta="0%"
android:duration="3000"
android:zAdjustment="top">
</translate>
Run Code Online (Sandbox Code Playgroud)