Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid - When opening activity the opener disappear before the transition animation ends
    primarykey
    data
    text
    <p>I strat an activity like so:</p> <pre><code>new Thread() { @Override public void run() { Intent i = new Intent(); i.setClass(getBaseContext(), newPage.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getBaseContext().startActivity(i); } }.start(); </code></pre> <p>and i use <code>getActivity().overridePendingTransition(R.anim.slide_in_from_bottom, R.anim.nothing);</code></p> <p>and in newPage.class i use <code>overridePendingTransition(R.anim.nothing, R.anim.slide_out_to_bottom);</code></p> <p>the animations are: slide_in_from_bottom.xml</p> <pre><code>&lt;translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromYDelta="100%p" android:toYDelta="0%p" android:duration="@android:integer/config_mediumAnimTime"/&gt; </code></pre> <p>slide_out_to_bottom.xml</p> <pre><code>&lt;translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromYDelta="0%p" android:toYDelta="100%p" android:duration="@android:integer/config_mediumAnimTime"/&gt; </code></pre> <p>nothing.xml</p> <pre><code>&lt;alpha xmlns:android="http://schemas.android.com/apk/res/android" android:duration="0" android:fromAlpha="1" android:toAlpha="1"/&gt; </code></pre> <p><strong>So what's worng?</strong></p> <p>when I finish newPage.class it looks great, but when I start newPage.class - the activity disappear (black screen) and only then the animation of the new activity starts [and i want to keep the first activity on the screen until the new one covers it]</p> <p>** tried <code>getWindow().setBackgroundDrawable(null);</code> </p> <p>and </p> <pre><code>ColorDrawable colorDrawable = new ColorDrawable( Color.TRANSPARENT ); getWindow().setBackgroundDrawable( colorDrawable ); </code></pre> <p>but no luck...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload