android - Can I set a LayoutTransition with an Animation (instead of Animator)? -


i want make custom transitions on layout. i'd use xml defined "animation" because lets me use percentage values, while "animator" seems take pixel values. problem layouttransition seems take "animator" parameter.

    layouttransition lt = new layouttransition();     lt.enabletransitiontype(layouttransition.changing);     lt.setanimator(layouttransition.disappearing, /*animator*/);     view.setlayouttransition(lt); 

try using animator object defined xml

animatorinflater.loadanimator(context, r.animator.your_animation) 

the xml uses tag:

<objectanimator /> 

this different animation , has different set of properties. these can found at: property animations

hope helps.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -