-2

子レイアウトから親レイアウトにしようとしanimateています。親レイアウトに入るときに問題がペイントされない。ImageView(Relativelayout)(Relativelayout)Imageview

4

1 に答える 1

1

この R.anim.popup_show.xml ファイル

    <?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>

次のようなJavaファイルに適用します

   Animation animRight = AnimationUtils.loadAnimation(options.this, R.anim.popup_show);
   ImageView.startAnimation( animRight ); 
于 2011-03-14T09:59:48.427 に答える