In regards to the original question of sliding an activity from bottom of the screen, use the following code.
Intent intent = new Intent(FirstActivity.this, SecondActivity.class);
ActivityOptions options = ActivityOptions.makeCustomAnimation(FirstActivity.this,R.anim.slide_in_up,0);
startActivity(intent, options.toBundle());
slide_in_up.xml
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromYDelta="100%p" android:toYDelta="0%p"
android:duration="@android:integer/config_longAnimTime"/>
You could define your own exit animation in the third parameter of the function makeCustomAnimation
As for the specific response as per your screens, @Naser 's reply seems like the way to go