自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 android listView 滚动加载

1.When the scrolling is stop(idle) to invoke our operation listViewLocal.setOnScrollListener(new OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrol...

2011-08-29 10:49:48 87

原创 java date format

Date data get from database, String ---> long --> Date() and get the final We wantDate date = new Date(bean.createTime);new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date)

2011-08-27 17:28:40 87

原创 sqlite 分页

select * from table_name limit 10,100;表示跳过10条,取100条结果。

2011-08-26 14:58:00 87

原创 重写dialog

@null false true true @android:color/transparent @drawable/dialog_bg_trans true

2011-08-26 11:54:39 161

原创 android deal with big images

// Deal with big image that size more 8MBitmapFactory.Options option = new BitmapFactory.Options();option.inTempStorage = new byte[1024*1024*5]; Bitmap bm = BitmapFactory.decodeFile(inputStream,...

2011-08-26 11:35:56 113

原创 android 虚拟机 内存 设置

// Add this property into C:\Documents and Settings\Administrator\.android\avd\480_800.avd/config.inihw.ramSize=256

2011-08-26 11:33:52 354

原创 scroll to the specitied position in listview

/// how to scroll to a position in a listViewint index = mList.getFirstVisiblePosition();View v = mList.getChildAt(0);int top = (v == null) ? 0 : v.getTop();// ...// restoremList.setSe...

2011-08-19 16:29:28 70

原创 android 关闭输入法

关闭默认打开的输入法((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);

2011-08-01 14:49:22 192

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除