android scrollview组件禁止滑动的方法
16lz
2021-12-04
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"> 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全屏的方法
- android中自带的主题(theme)的集
- android 中系统自带的主题与样式(theme and style)
- android系统自带的主题与样式(theme and style)
- android中自带的主题(theme)的集
- 【android】seekbar 样式自定义
- [Android]Android高级UI开发系列教程(一) - Android拖拽教程
- JavaScript制作日历
- github的clone有安装不了依赖的问题错误代码128,设置GitHub代理