Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Slide in and out animation issue
    primarykey
    data
    text
    <p>My Activity Successfully slide in android 4.1 from Activity A to B using animation </p> <pre><code>**inamation.xml** &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;translate android:fromXDelta="100%" android:toXDelta="0%" android:duration="600" /&gt; &lt;/set&gt; </code></pre> <p>and </p> <p><strong>outanimation.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;translate android:fromXDelta="100%" android:toXDelta="0%" android:duration="600" /&gt; &lt;/set&gt; </code></pre> <p>and in activity A i used overidding pending transition as shown below:</p> <p>A.this.overridePendingTransition(R.anim.outanimation,R.anim.inanimation);</p> <p>as said earlier this works fine on android 4 and above platform but when i test it on android 2.3 platform, Activity A to B gets android default activity animation.</p> <p>how can i run my activity to slide left to right and right to left which is compatible with 2.2 and above. </p> <p><strong>Is there a way to set animation between two activities programmatically ?</strong></p> <p><strong>UPDATE</strong></p> <p><em><strong>The problem was that the device, at least in the case of Samsung Galaxy, has to have animations enabled for this to work. This can be done in the settings menu.</em></strong></p> <p><strong>Do you know how to activate all animation from settings Menu in Android ?</strong></p>
    singulars
    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.
 

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