/**
* Always allow a user to over-scroll this view, provided it is a
* view that can scroll.
*
* @see #getOverScrollMode()
* @see #setOverScrollMode(int)
*/
public static final int OVER_SCROLL_ALWAYS = 0;


/**
* Allow a user to over-scroll this view only if the content is large
* enough to meaningfully scroll, provided it is a view that can scroll.
*
* @see #getOverScrollMode()
* @see #setOverScrollMode(int)
*/
public static final int OVER_SCROLL_IF_CONTENT_SCROLLS = 1;


/**
* Never allow a user to over-scroll this view.
*
* @see #getOverScrollMode()
* @see #setOverScrollMode(int)
*/
public static final int OVER_SCROLL_NEVER = 2;


/**
* Set the over-scroll mode for this view. Valid over-scroll modes are
* {@link #OVER_SCROLL_ALWAYS} (default), {@link #OVER_SCROLL_IF_CONTENT_SCROLLS}
* (allow over-scrolling only if the view content is larger than the container),
* or {@link #OVER_SCROLL_NEVER}.
*
* Setting the over-scroll mode of a view will have an effect only if the
* view is capable of scrolling.
*
* @param overScrollMode The new over-scroll mode for this view.
*/

public void setOverScrollMode (int mode)

为视图设置过滚动模式。有效的过滚动模式有 OVER_SCROLL_ALWAYS(默认值)、 OVER_SCROLL_IF_CONTENT_SCROLLS(视图内容大于容器时允许过滚动)、 OVER_SCROLL_NEVER. 只有当视图可以滚动时,才可以设置视图的过滚动模式.

参数

mode 视图的新的过滚动模式



更多相关文章

  1. 移除Android中的安全模式
  2. Android任务栈和启动模式
  3. 精通android体系架构、mvc、常见的设计模式、控制反转(ioc)
  4. Unity3D游戏开发之在Android视图中嵌入Unity视图
  5. Android活动Acitivity启动模式之singleTop
  6. Android活动启动模式
  7. Android盈利模式,哪种更靠谱?
  8. [Android]ListView性能优化之视图缓存

随机推荐

  1. Android开发学习之Animation之Android帧
  2. Unity3d Android开发 Android(安卓)Devel
  3. 【Android经典入门教程-下(bill译)】
  4. AsyncTask机制详解
  5. windows中android SDK manager安装更新sd
  6. android中使用MediaPlayer播放视频
  7. Android(安卓)设置DrawableRight和Drawab
  8. Android(安卓)获取手机流量
  9. Linearlayout的android:divider属性
  10. Android利用Fiddler进行网络数据抓包