Reputation: 737
Im developing carousel effect for my images from this http://www.codeproject.com/Articles/146145/Android-3D-Carousel?msg=4664505#xx4664505xx.
My Carousel layout is:
<com.example.controls.Carousel
android:id="@+id/carousel"
android:layout_width="600dp"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginTop="20dp"
android:animationDuration="300"
pj:Items="@array/entries"
pj:Names="@array/names"
pj:SelectedItem="0"
pj:UseReflection="true" >
</com.example.controls.Carousel>
Pls anybody tell me how to customize this carousel to rotate automatically.Thanks in Any Advance.
Upvotes: 1
Views: 1720
Reputation: 737
Solved My question:
Calling Rotate method in onDraw as in onTouch method.Which is:
@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
mFlingRunnable.startUsingDistance(-180);
}
Upvotes: 2