I have an application that contains one layout with sevral views, when I animate one view, all views are redrawn! what is normal behavior or am i doing something false? I would like to cancel this behavior and just redraw the views that I manually invalidated thanks
<SecondsArc android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/secondsArc" android:background="#00000000" android_layout_gravity="center"></SecondsArc > <MinutesArc android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/minutesArc" android:background="#00000000" android_layout_gravity="center"></MinutesArc >
I will say that two user views and viewSourceArc are each animated and therefore redraw 10 times per second. The problem is that MinutesArc also redraws! the problem is that I have about 10 views, and they all redraw 10 times per second, this method is called in SecondsArc to rotate it
public void rotateByDegree(float degree){ RotateAnimation rotateAnim = new RotateAnimation(currentDegree, currentDegree + degree, getWidth()/2,270); rotateAnim.setDuration(600); rotateAnim.setFillAfter(true); rotateAnim.setFillEnabled(true); this.startAnimation(rotateAnim);}
source share