android-使用Scroller進行y軸上的平移

scroller平移是指利用scroller進行計算,用scrollTo進行實際的的平移,移動的是內容,即子view相對於父view的位置,而非位置。java 1.scrollTo和scrollBy scrollTo(int x, int y),相對於初始位置進行平移。git scrollBy(int x, int y),調用scrollTo方法進行平移,相對於上一次平移的位置進行平移。githu
相關文章
相關標籤/搜索