android - fragment slide transition not as smooth as activity transition -
when transaction.setcustomanimations(r.anim.move_left_in, r.anim.move_left_out), instead of sliding fragment out: window first remove view kid views , slide. makes poor user experience. want view , children intact slide out. using same transition activities , works fines; no funny attenuation before sliding. how might fragment transition behave more activity transition?
myfragment fragment = new myfragment(); fragment.setarguments(bundle); fragmenttransaction transaction = getsupportfragmentmanager().begintransaction(); transaction.setcustomanimations(r.anim.move_left_in, r.anim.move_left_out); transaction.replace(r.id.holder, fragment, myfragment.class.getsimplename()); transaction.addtobackstack(null); transaction.commit();
try setting hardware acceleration transition:
http://daniel-codes.blogspot.co.il/2013/09/smoothing-performance-on-fragment.html
android android-fragments android-animation transition
No comments:
Post a Comment