Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Fade slide animation when using intent for bottom navigation bar

Marcel Hiz:

I have a navigation bar at the bottom with icons. When I click on an icon a new Activity Starts with intent.


context.startActivity(intent1.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP));

Like this. If I test it on my Android Pixel emulator the Animation is always from bottom to top when a new activity starts. If I test it on my physical android device (Android 7.1) the animation is always from right to left when a new activity starts. When I close an activity the animation goes from left to right away.

I want always this slide animation (like on my physical device). What do I have to do?

I added


overridePendingTransition(R.anim.slide_in, R.anim.slide_out);

In the onCreate() of the activites, so I have the slide when the activity starts, but no slide animation when the activity close.

Thanks for your help



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Fade slide animation when using intent for bottom navigation bar

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×