Parameters:view - the View to scrollside - the side to scroll; RIGHT or LEFTscrollPosition - the position to scroll to, from 0 to 1 where 1 is all the way。 Example is: 0。60stepCount - how many move steps to include in the scroll。 Less steps results in a faster scrollscrollViewToSide
public void scrollViewToSide(android.view.View view, int side, float scrollPosition)Scrolls a View horizontally。Parameters:view - the View to scrollside - the side to scroll; RIGHT or LEFTscrollPosition - the position to scroll to, from 0 to 1 where 1 is all the way。 Example is: 0。60scrollViewToSide
public void scrollViewToSide(android.view.View view, int side)Scrolls a View horizontally。
Parameters:view - the View to scrollside - the side to scroll; RIGHT or LEFTpinchToZoom
public void pinchToZoom(android.graphics.PointF startPoint1, android.graphics.PointF startPoint2, android.graphics.PointF endPoint1, android.graphics.PointF endPoint2)Zooms in or out if startPoint1 and startPoint2 are larger or smaller then endPoint1 and endPoint2。 Requires API level >= 14。Parameters:startPoint1 - First "finger" down on the screenstartPoint2 - Second "finger" down on the screenendPoint1 - Corresponding ending point of startPoint1endPoint2 - Corresponding ending point of startPoint2swipe
public void swipe(android.graphics.PointF startPoint1, android.graphics.PointF startPoint2, android.graphics.PointF endPoint1, android.graphics.PointF endPoint2)Swipes with two fingers in a linear path determined by starting and ending points。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-24.html
#杨洋2015金投赏##杨洋icon#杨洋