ITeye博客

啵啵丹的博客

啵啵丹 · 共 8 篇文章

scrollview 与自定义控件的上下滑动冲突 仿iphone时间控件 wheelview

/** 能够兼容ViewPager的ScrollView @Description: 解决了ViewPager在ScrollView中的滑动反弹问题 */ public class ScrollViewExtend extends ScrollView { // 滑动距离及坐标 private float xDistance, yDistance, xLast, yLast; public ScrollViewExtend(Context context, AttributeSet attrs) { super(context, attrs); } @Override public bool…

2013-12-18 17:40 · android · 评论(0)

itye 地址

http://201204010658.iteye.com/blog/1991669

2013-12-18 17:40 · 评论(0)

scrollview 与自定义控件的上下滑动冲突 仿iphone时间控件 wheelview

/** * 能够兼容ViewPager的ScrollView * @Description: 解决了ViewPager在ScrollView中的滑动反弹问题 */ publicclassScrollViewExtendextendsScrollView { // 滑动距离及坐标 privatefloatxDistance, yDistance, xLast, yLast; publicScrollViewExtend(Context context, AttributeSet attrs) { super(context, attrs); } @Override publicbooleano…

2013-12-18 15:54 · 评论(0)

textview 添加超链接

http://www.oschina.net/question/565065_67872 地址

2013-12-18 15:18 · 评论(0)

收藏地址

SlidingMenu+listView下拉刷新+viewpager焦点冲突 http://www.apkbus.com/forum.php?mod=viewthread&tid=101849 (出处: Android开发论坛 - 安卓开发论坛 - Android开发 - 安卓论坛 - 移动互联网门户)

2013-12-18 15:14 · 评论(0)

Android 使用SQLiteDatabase操作SQLite数据库(一)

转自 http://www.eoeandroid.com/forum.php?mod=viewthread&tid=83427 此博文解决了解决了我的一个疑问 一直不知道为什么非要用占位符 原来是单引号的缘故 Android提供了一个名为SQLiteDatabase的类,该类封装了一些操作数据库的API,使用该类可以完成对数据进行添加(Create)、查询(Retrieve)、更新(Update)和删除(Delete)操作(这些操作简称为CRUD)。对SQLiteDatabase的学习,我们应该重点掌握execSQL()和rawQuery()方法。 execSQL()方法可以执行insert…

2013-10-24 17:11 · 评论(0)

Android 使用SQLiteDatabase操作SQLite数据库(二)

转自 http://www.eoeandroid.com/thread-83428-1-1.html 除了前面给大家介绍的execSQL()和rawQuery()方法, SQLiteDatabase还专门提供了对应于添加、删除、更新、查询的操作方法: insert()、delete()、update()和query() 。这些方法实际上是给那些不太了解SQL语法的菜鸟使用的,对于熟悉SQL语法的程序员而言,直接使用execSQL()和rawQuery()方法执行SQL语句就能完成数据的添加、删除、更新、查询操作。 Insert()方法用于添加数据,各个字段的数据使用ContentValues…

2013-10-24 17:11 · 评论(0)

让ScrollView出现在顶部

ScrollViewExtend sc = (ScrollViewExtend) findViewById(R.id.scroll); sc.smoothScrollTo(0, 0);

2013-09-22 11:04 · 评论(0)