GridView禁止横向滑动
来源:互联网 发布:央视网络电视台直播 编辑:程序博客网 时间:2024/06/06 00:42
package com.example.androidtest;import android.content.Context;import android.util.AttributeSet;import android.view.MotionEvent;import android.widget.GridView;/** * <p> * 自定义GridView 实现,只能横向滑动,不能纵向滑动 * </p> * * 2013-12-10 * * */public class CustomGridViewWidget extends GridView {public CustomGridViewWidget(Context context) {super(context);}public CustomGridViewWidget(Context context, AttributeSet attrs,int defStyle) {super(context, attrs, defStyle);// TODO Auto-generated constructor stub}public CustomGridViewWidget(Context context, AttributeSet attrs) {super(context, attrs);// TODO Auto-generated constructor stub}@Overridepublic boolean onTouchEvent(MotionEvent ev) {super.onTouchEvent(ev)//action==move的时候返回true,}}
0 0
- GridView禁止横向滑动
- 横向滑动的GridView
- 横向滑动HorizontalScrollView+Gridview
- gridview横向滑动
- GridView横向滑动+预览
- GridView横向滑动+预览
- Android ViewPager 禁止横向滑动
- 如何禁止GridView滑动
- 如何禁止GridView滑动
- Android横向滑动的GridView
- GridView 变 横向滑动 ListView
- 【Android】禁止滑动的GridView
- 如何禁止Gridview上下滑动?
- 如何禁止Gridview上下滑动
- GridView和ListView禁止滑动
- android 单行gridview横向滑动的实现
- Android多行gridview横向滑动的实现
- HorizontalScrollView嵌套GridView实现横向滑动
- LINQ to SQL的一些简单用法
- unity获取系统时间
- DIV+CSS教程《第一天 XHTML CSS基础知识》
- malloc/free与new/delete的区别
- 【枚举排序】生成可重集排序
- GridView禁止横向滑动
- Oracle(二)- 笛卡尔积造成的问题(一)
- DIV+CSS教程《第二天 一列布局》
- DB2文件注册表
- android中捕获ontouchlistener问题
- YUV格式到RGB格式的转换
- 设计模式之装饰者模式
- 音乐播放器 vmp 代码部分
- virtual Studio在命令行下的使用