How can I define this animation xml by java code without using xml
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate android:fromXDelta="-100%p" android:toXDelta="0"
android:duration="900" />
</set>
Yes, why not ?
Regards,
Stéphane