android图片全景360°自动(手动)循环滚动
2015-01-28 17:57
351 查看
一个自定义控件:
github:https://github.com/guoGavin/PanoramicAutoScroll
csdn:http://download.csdn.net/detail/jiguangcanhen/8404891
按照一定的速度自动滚动。
当手指进行操作则停止滚动,手指放开则继续滚动。
可以设置为无限循环滚动或者无限往复滚动。
可以设置滚动速度。
地址
github:https://github.com/guoGavin/PanoramicAutoScrollcsdn:http://download.csdn.net/detail/jiguangcanhen/8404891
效果图
功能
按照一定的速度自动滚动。当手指进行操作则停止滚动,手指放开则继续滚动。
可以设置为无限循环滚动或者无限往复滚动。
可以设置滚动速度。
Layout
<com.gavin.panoramicautoscroll.AutoScrollHorizontalScrollView android:id="@+id/scrollView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="none" android:background="@android:color/transparent" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" /> </com.gavin.panoramicautoscroll.AutoScrollHorizontalScrollView>
滚动方式
enum ShowWay{ cycle,//Infinite scrolling repeat,//Scroll back and forth }
自动滚动速度
enum Speed{ slow, medium, fast, }
设置以及启动
autoScrollView.setShowContent(bitmap); autoScrollView.setSpeed(speedResult); autoScrollView.setShowWay(showWayResult); autoScrollView.startAutoScroll();
相关文章推荐
- android自定义Gallery实现手动和自动循环滚动切换图片
- Android 自动循环滚动图片(广告)附带导航小圆点
- Android使用Recyclerview实现图片水平自动循环滚动效果
- Android使用Recyclerview实现图片水平自动循环滚动效果
- Android开发--ViewPager自动循环滚动,手动换页
- 【Android开发VR实战】二.播放360°全景视频
- Android Tween动画之RotateAnimation实现图片360°不停旋转
- Android 滑动切换(首页展示,图片、新闻自动切换,循环切换,自动和手动)
- android自定义Gallery实现手动和自动循环滚动切换图片
- JS实现div内部的文字或图片自动循环滚动代码
- Android 滑动侧边栏(Sliding Menu)第一种实现 - 1 手动滚动+自动滚动
- 推荐(1月26日):360°展示图片 应用Taasky的带有3D效果的折叠菜单
- Android TextView文字横向自动滚动…
- 单行图片滚动,自动向左滚动一次暂停一下,可以手动向右或者左滚动
- 【Android游戏开发二十四】360°平滑游戏摇杆(触屏方向导航)
- JS图片自动或者手动滚动效果(支持left或者up)
- Android图片滚动,加入自动播放功能,使用自定义属性实现,霸气十足!
- 【Android游戏开发二十四】360°平滑游戏摇杆(触屏方向导航)
- Android 360°平滑游戏摇杆(触屏方向导航)
- JS实现div内部的文字或图片自动循环滚动