rotateanimation

Android:Translation and Rotation Animation simultaneously

半城伤御伤魂 提交于 2019-11-30 13:39:58
I want to show two animation simultaneously programatically not in XML file.It should ROTATE and TRANSLATE how can I do that? Please suggest me some way?????? Here is ma code:> ImageView snowImg1 = (ImageView) findViewById(R.id.snowimg1); snowImg1.setVisibility(0); ImageView snowImg2 = (ImageView) findViewById(R.id.snowimg2); snowImg2.setVisibility(0); ImageView snowImg3 = (ImageView) findViewById(R.id.snowimg3); snowImg3.setVisibility(0); ImageView snowImg4 = (ImageView) findViewById(R.id.snowimg4); snowImg4.setVisibility(0); ImageView snowImg6 = (ImageView) findViewById(R.id.snowimg6);

Android:Translation and Rotation Animation simultaneously

旧时模样 提交于 2019-11-29 19:06:55
问题 I want to show two animation simultaneously programatically not in XML file.It should ROTATE and TRANSLATE how can I do that? Please suggest me some way?????? Here is ma code:> ImageView snowImg1 = (ImageView) findViewById(R.id.snowimg1); snowImg1.setVisibility(0); ImageView snowImg2 = (ImageView) findViewById(R.id.snowimg2); snowImg2.setVisibility(0); ImageView snowImg3 = (ImageView) findViewById(R.id.snowimg3); snowImg3.setVisibility(0); ImageView snowImg4 = (ImageView) findViewById(R.id

Why doesn't setVisibility work after a view is animated?

懵懂的女人 提交于 2019-11-27 18:27:04
Why doesn't the textView become invisible? Here is my layout xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/tvRotate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Rotate Me" /> </LinearLayout> ..and here is my activity: public class RotateMeActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate