2012-08-09 83 views
0

我正在使用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> 

要麼與overridePendingTransitiongetWindow()setWindowAnimations()

我看到有關於該活動的頂部空間,而它的滑動,通知欄會在那裏。

ICS上不會發生這種故障,如果它與ABS有關,我現在不會發生,但是您有什麼想法嗎?

謝謝。

回答

0

更新這... 機器人:toYDelta = 「0%P」

<?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> 
+0

它什麼都不做 – vieux 2012-08-09 10:27:25

0

我只是想提一些關於你所定義的過渡方式。從Android 8.0開始,如果將百分比定義爲「0%p」,則翻譯動畫會產生小故障。相反,將它們定義爲「0%」。