android - OverridePendingTransition(): How to modulate transition speed -


i have list view. set on click listener. if user clicks on list item, new activity "slides" view. background activity remains static , fixed on screen.

how make new activity panel_slider "slide faster"

panel_slider.xml

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android">     <translate         android:fromydelta="0"         android:toydelta="0%p"         android:duration="600"         /> </set> 

main_activity_slider

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android">     <translate         android:fromydelta="100%p"         android:toydelta="0"         android:duration="700"         /> </set> 

intent

intent intent = new intent(mainactivity.this, playpanel.class); startactivity(intent); overridependingtransition  (r.anim.main_activity_slide, r.anim.music_panel_slide); 

change android:duration= in main_activity_slider

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android">     <translate         android:fromydelta="100%p"         android:toydelta="0"         android:duration="100"         /> </set> 

the durations "reversed"


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -