首页 > 移动平台 > 详细

android scrollview组件禁止滑动的方法

时间:2015-05-23 01:11:10      阅读:3121      评论:0      收藏:0      [点我收藏+]

 

xml配置:
          android:id="@+id/sc_freement"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" 
            android:layout_below="@id/category_line"
android:scrollbars="none"
android:fadingEdge="none">
</<span style="line-height: 21px; ">ScrollView>
 
java代码控制:
ScrollView  scrollView = (ScrollView)this.findViewById(R.id.sc_freement);
scrollView.setOnTouchListener(new View.OnTouchListener(){
@Override
public boolean onTouch(View arg0, MotionEvent arg1) {
return true;
}
});

android scrollview组件禁止滑动的方法

原文:http://www.cnblogs.com/exmyth/p/4523516.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!