I trying to animate
the ImageView
from child layout (Relativelayout)
to parent layout (Relativelayout)
. Issue is Imageview
is not getting painted while entering into the 开发者_如何转开发parent layout.
This R.anim.popup_show.xml file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="500"/>
</set>
and apply in java file like as
Animation animRight = AnimationUtils.loadAnimation(options.this, R.anim.popup_show);
ImageView.startAnimation( animRight );
精彩评论