scrollX = getScrollX()

来源:互联网 发布:比知乎的质量高的平台 编辑:程序博客网 时间:2024/06/11 19:43

int android.view.View.getScrollX()

 

public final int getScrollX ()
Since: API Level 1
Return the scrolled left position of this view. This is the left edge of the displayed part of your view. You do not need to draw any pixels farther left, since those are outside of the frame of your view on screen.

返回滚动左边位置。可视部分的左边边缘。更左边的像素已经超出屏幕的边框,所以不用绘出。

Returns
The left edge of the displayed part of your view, in pixels.

显示部分的左边边缘,单位像素。

原创粉丝点击