- 博客(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
原创 重写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关注的人