android - ViewPager animatin in fragmentTransaction -


i'm trying obtain viewpager animation using fragmentmanager. can see animation here: http://developer.android.com/training/animation/screen-slide.html

i tryed apply customanimation transaction using animation that:

    <objectanimator xmlns:android="http://schemas.android.com/apk/res/android"     android:interpolator="@android:anim/linear_interpolator"     android:valuefrom="-100"     android:valueto="0"     android:propertyname="x"     android:duration="@integer/slide_in_left_animation_duration" /> 

but animation different i'm looking for. there way that? or have use viewpager? (i don't think viewpager right solution.. in fact app have change fragment depending on user input, can't fill arraylist priori)

this library provides easy way set viewpager page change animations , has quite many types implemented. it's easy use, see it's example application , documentation.

https://github.com/toxicbakery/viewpagertransforms


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -