Activity設定動画切り替え時の黒画面問題の解決

1943 ワード

// , Acticity 
overridePendingTransition(R.anim.activity_open,0);

//   
// Activity 
overridePendingTransition(R.anim.activity_open,R.anim.activity_stay);

activity_open.xml

<set  xmlns:android="http://schemas.android.com/apk/res/android">
    <translate
        android:fromXDelta="100%"
        android:toXDelta="0%"
        android:duration="300"
        />
set>

activity_stay.xml

<set  xmlns:android="http://schemas.android.com/apk/res/android">
    <alpha
        android:fromAlpha="1"
        android:toAlpha="1"
        android:duration="300"
        />
set>