animation - Android Imageview disappears and degrades when rotate -
in app have imageview (my image 30 ko png) rotate. on samsung galaxy s3, s5 , note don't have problems on android simulator. on nexus 5 (on android 4.4.4) when imageview rotate, degrades , disappears , don't know why ?
image on samsung , simulator after rotation .
image on nexus 5 after rotation .
the rotation code in thread
rotateanimation ranim = new rotateanimation( 0f, oscillationdegrees, animation.relative_to_self, 0.5f, animation.relative_to_self, 0.5f); ranim.setduration(1000); ranim.setfillafter(true); //keep position after rotation picture.startanimation(ranim);
layout
<imageview android:id="@+id/ln" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:layout_centervertical="true" android:src="@drawable/h_baro_ln" />
i seek set imageview in linearlayout , rotate instead of imageview it's 1 time again same problem.
do have ideas ?
thanks
android animation layout rotation imageview
No comments:
Post a Comment