android - Translate animation from code to xml

CetiN

New Member
I simply wonder how the xml-file for this animation would look like:\[code\] private Animation inFromRightAnimation() { Animation inFromRight = new TranslateAnimation( Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f ); inFromRight.setDuration(300); inFromRight.setInterpolator(new AccelerateInterpolator()); return inFromRight; }\[/code\]
 
Back
Top