This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onShouldStartActivity() { | |
// creation of intent to start activity2 | |
Intent intent = new Intent(this, Activity2.class); | |
startActivity(intent); | |
// Following the documentation, right after starting the activity | |
// we override the transition | |
overridePendingTransition(R.anim.activity_in, R.anim.activity_out); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<translate | |
android:fromXDelta="0" | |
android:toXDelta="100%" | |
android:duration="200" /> | |
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<translate | |
android:fromXDelta="-100%" | |
android:toXDelta="0" | |
android:duration="200" /> | |
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<translate | |
android:fromXDelta="0" | |
android:toXDelta="-100%" | |
android:duration="200" /> | |
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<translate | |
android:fromXDelta="100%" | |
android:toXDelta="0" | |
android:duration="200" /> | |
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void overridePendingTransition (int enterAnim, int exitAnim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isArray(arr) { | |
return Object.prototype.toString.call(arr) === '[object Array]'; | |
} | |
function foreach(arr, handler) { | |
if (isArray(arr)) { | |
for (var i = 0; i < arr.length; i++) { | |
handler(arr[i]); | |
} | |
} |
NewerOlder