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
<?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
<?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
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
@Override | |
public boolean onOptionsItemSelected(MenuItem item) { | |
// Handle action bar item clicks here. The action bar will | |
// automatically handle clicks on the Home/Up button, so long | |
// as you specify a parent activity in AndroidManifest.xml. | |
int id = item.getItemId(); | |
switch(id) { | |
// ... |
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
@Override | |
public void onBackPressed() { | |
// finish() is called in super: we only override this method to be able to override the transition | |
super.onBackPressed(); | |
overridePendingTransition(R.anim.activity_back_in, R.anim.activity_back_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
pm2 start myServer.js -i max |
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
{ online: true, success: true, pid: 1113, pm2_version: '0.8.13' } | |
PM2 Process launched | |
┌──────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬─────────────┐ | |
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │ | |
├──────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼─────────────┤ | |
│ server │ 0 │ cluster │ 1114 │ online │ 0 │ 0s │ 29.738 MB │ unactivated │ | |
│ server │ 1 │ cluster │ 1115 │ online │ 0 │ 0s │ 29.934 MB │ unactivated │ | |
│ server │ 2 │ cluster │ 1116 │ online │ 0 │ 0s │ 30.063 MB │ unactivated │ | |
│ server │ 3 │ cluster │ 1117 │ online │ 0 │ 0s │ 29.703 MB │ unactivated │ | |
│ server │ 4 │ cluster │ 1118 │ online │ 0 │ 0s │ 30.293 MB │ unactivated │ |
OlderNewer