Android 活动转换上的视觉故障

Android 活动转换上的视觉故障,android,android-activity,transition,visual-glitch,Android,Android Activity,Transition,Visual Glitch,我正在使用ABS开发一个应用程序。 当我使用此自定义活动动画时: <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="1400"/> &l

我正在使用ABS开发一个应用程序。 当我使用此自定义活动动画时:

<?xml version="1.0" encoding="utf-8"?>
    <set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="1400"/>
</set>

可以使用overridePendingTransition或getWindow()。setWindowAnimations()

我看到活动滑动时顶部有一个空格,通知栏就在那里

这个小故障不会发生在ICS上,我现在不知道它是否与ABS有关,但你知道吗

谢谢。

更新此。。。 android:toYDelta=“0%p”


我只想谈谈您定义转换的方式。从Android 8.0开始,如果将百分比定义为“0%p”,则翻译动画会有一个小问题。相反,将其定义为“0%”

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%p" android:toYDelta="0%p" android:duration="1400"/>
</set>