Assuming we have two activities, A and B.
I want that when you press an element (for example a button) of the activity A change to the activity B simulating the effect that has been implemented in the ViewPager when changing from one fragment to another, as an activity slides to one side and the other appears next.
That effect is what I would like to simulate, but instead of sliding or using tabs that happens when clicking any view and that it is between two activities and not two fragments.
I tried to do it with
Also with this:
Slide slide= new slide.setDuration(1000); getWindow().setEnterTransition(slide); Slide slide= new slide.setDuration(1000); getWindow().setExitTransition(slide);
Writing those lines of code in activity A and activity B
But not if it is that I am using that code from above badly or it is done differently or it simply can not be done between two activities.