使Android旋转木马自动旋转
问题描述:
我开发旋转木马效果为我的图像从这http://www.codeproject.com/Articles/146145/Android-3D-Carousel?msg=4664505#xx4664505xx。使Android旋转木马自动旋转
我的旋转木马布局是:
<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>
请有人告诉我如何自定义该转盘中的任何高级旋转automatically.Thanks。
答
解决我的问题:
在调用的onDraw旋转方法在onTouch method.Which是:
@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
mFlingRunnable.startUsingDistance(-180);
}
http://www.inter-fuser.com/2010/01/android-coverflow -widget.html –
http://www.pocketmagic.net/2013/06/a-3d-carousel-view-for-android/#.UkUkwLyKxz8 –
嗨@AmitPrajapati thanq快速回复。那些是用户控制的意见,但我想要将它们设置为自动旋转。 – Neeha