什么是WebView.flingScroll()呢? [英] What does WebView.flingScroll() do?
本文介绍了什么是WebView.flingScroll()呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个链接是我能找到的<一个文档href=\"http://developer.android.com/reference/android/webkit/WebView.html#flingScroll%28int,%20int%29\"相对=nofollow> flingScroll(VX,VY)
方法。它没有的方法所做的说明。
This link is all the documentation I can find on the flingScroll(vx,vy)
method. It has no description of what the method does.
什么方法呢?什么是 VX
和 VY
?我利用他们作为坐标,但他们的速度?
What does the method do? What are vx
and vy
? I was using them as coordinates, but are they velocities?
推荐答案
它模仿用户丢的用户界面。的Vx和Vy是在x和y方向上的速度(即,如何快速滚动的用户确定如何快速视图将多远滚动)。
It mimics a user flinging the ui. The vx and vy are velocities in the x and y direction (i.e. how fast the user scrolled determines how quickly and how far the view will scroll).
这篇关于什么是WebView.flingScroll()呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文