This is my slide in anim
It can slide in MyActivity and stop at 50%
But, when the animation is finish, the activity will become 100% of screen, how can I keep it 50%?
Update 1:
startActivity(new Intent(this, MyActivity.class));
overridePendingTransition(R.anim.in,R.anim.out);
in.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="500"
android:fromXDelta="0%p"
android:fromYDelta="100%p"
android:toXDelta="0%p"
android:toYDelta="50%p"
/>
</set>
out.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="500"
android:fromXDelta="0%p"
android:toXDelta="0%p"
/>
</set>