overridePendingTransition doesn't work
The problem was that the device, at least in the case of Samsung Galaxy, has to have animations enabled for this to work. This can be done in the settings menu.
In android Studio, I want when i click on button , next activity/fragment should come from right side
There is a easy way to do this. just put overridePendingTransition on your OnCreate method of next Activity/Fragment.So that when next Activity will come it will come according to your choice.Need not add overridePendingTransition on adapters.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ask_question);
overridePendingTransition( R.anim.slide_in_right_up, R.anim.slide_out_right_up);
}
Related Topics
Libgdx Spritebatch Render to Texture
How to Create Converter for My Class in Android Retrofit Library
How to Add Bulleted List to Android Application
Android How to Programmatically Hide Launcher Icon
How to Avoid Delay in Android Gcm Messages/Change Heartbeat
(Deprecated) Fragment Onoptionsitemselected Not Being Called
App Always Starts Fresh from Root Activity Instead of Resuming Background State (Known Bug)
How to Capture Image from Custom Cameraview in Android
Difference Between Build.Gradle (Project) and Build.Gradle (Module)
How to Perform a Fade Animation on Activity Transition
How to Encrypt/Decrypt String in Android
Caused By: Java.Lang.Outofmemoryerror: Bitmap Size Exceeds Vm Budget
How to Display Menu Item with Icon and Text in Appcompatactivity
Preferencefragmentcompat Has Padding on Preferencecategory That I Can't Get Rid Of
How to Keep the Aspect Ratio on Image Buttons in Android