0
我不明白爲什麼會發生這種情況。我設置了imageview,使其不可見。然後旋轉它。不過,我可以看到imageview閃爍在屏幕上和屏幕之外。如何不可立即工作?即使在旋轉過程中不可見時仍可以看到imageview
img = (ImageView) findViewById(R.id.mystuff);
img.setVisibility(View.INVISIBLE);
animation = new RotateAnimation(0, 0,
Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF, 0.5f);
animation.setDuration(0);
img.startAnimation(animation);
爲什麼不能'View.GONE'? –
它會改變什麼嗎?僅僅是否佔用佈局空間,這不是差異嗎? – Jake