I'm trying to perform a custom animation on an Activity transition. The activity is supposed to slide smoothly upward instead of from the side. It works, but the view has a black bar (the same size as the status bar) on the top of the view. How can I get rid of the black bar? Here is the code I'm using:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
overridePendingTransition(R.anim.upin, R.anim.upout);
setContentView(R.layout.screen_login);
}
the animation upin:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%" android:toYDelta="0%" android:duration="500" />
</set>
the animation upout:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0%" android:toYDelta="0%" android:duration="500" />
</set>
EDIT: If I make all the Activities fullscreen it works perfectly. Of course, I don't WANT all the Activities to be fullscreen.