Skip to content

一个全景360自动(手动)循环滚动的演示demo

Notifications You must be signed in to change notification settings

digideskio/PanoramicAutoScroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

#PanoramicAutoScroll 一个全景360自动(手动)循环滚动的演示demo ##效果图 Screenshot ##功能

  • 按照一定的速度自动滚动。
  • 当手指进行操作则停止滚动,手指放开则继续滚动。
  • 可以设置为无限循环滚动或者无限往复滚动。
  • 可以设置滚动速度。

##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();

About

一个全景360自动(手动)循环滚动的演示demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%