Android: Animation on Custom XML Properties

braak

New Member
I have created custom XML styleables so they can be used when defining a layout in XML now i want to animate them using the XML animators... Is there any example that someone can point me out?Example code of the XML view: \[code\]<com.example.project.CircularLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:f="http://schemas.android.com/apk/res/com.example.project"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/layout"android:layout_width="match_parent"android:layout_height="match_parent" ><ImageView android:id="@+id/mediumCircle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="http://stackoverflow.com/questions/12583981/@drawable/mc01" f:degres="45" f:radius="200dp" /><ImageView android:id="@+id/mediumCircle2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="http://stackoverflow.com/questions/12583981/@drawable/mc01" f:degres="90" f:radius="150dp" />\[/code\]Now i want to animate the degree and radius property with Animators like this:\[code\]<set xmlns:android="http://schemas.android.com/apk/res/android"android:shareInterpolator="false"><scale android:interpolator="@android:anim/accelerate_decelerate_interpolator" android:toXScale="1" android:toYScale="1" android:pivotX="50%" android:pivotY="50%" android:fillAfter="false" android:duration="700" />\[/code\]Thanks in advance.
 
Back
Top