- 博客(7)
- 资源 (16)
- 收藏
- 关注
原创 android 从imageview中拿到drawable或bitmap
Bitmap bm=((BitmapDrawable)imageView.getDrawable()).getBitmap();
2014-10-31 20:48:02 2942
原创 baseAdapter填充多种布局时,布局错位
想当然的在getView里面做各种判断,然后ifhttp://stackoverflow.com/questions/13297299/reusing-views-in-android-listview-with-2-different-layouts/13297339#13297339
2014-10-31 16:14:22 2165
原创 handler 警告This Handler class should be static or leaks might occur 的回调解决方法
Handler mIncomingHandler = new Handler(new Handler.Callback() { @Override public boolean handleMessage(Message msg) { }});
2014-10-30 18:42:07 532
原创 intent传bitmap,接收bitmap
intent传bitmapByteArrayOutputStream baos = new ByteArrayOutputStream();if (entity.getBitmap() != null) {// 如果实体类中有大图片intent传入 否则不传if (entity.getBigBitmap() != null) {entity.getBigBitmap().com
2014-10-30 13:38:39 2140
原创 从expandable中获取点击的子项
parent.getExpandableListAdapter().getChild(groupPosition, childPosition);(if you want the data of a child, or .getGroup(groupPosition) if you want the data from the group) view instead of:v.t
2014-10-27 19:16:40 568
转载 Android中使EditText失去焦点,edittext禁止弹出键盘
在我们的应用中,有时候一进入一个页面, EditText默认就会自动获取焦点。弹出输入法框,用户体验很不好,那么如何取消这个默认行为呢?ps:这篇文字是一年前写的,现在有网友再问这个问题,我进行重新编辑--2014.05.07,目前有更好的办法,第一种方法局限性很强,大家可以使用第二种方法 第一种方法:.在网上找了好久,有点监听软键盘事件的方法,有调用 clearF
2014-10-17 10:49:34 594
转载 一个经典例子让你彻彻底底理解java回调机制
转帖请注明本文出自xiaanming的博客(http://blog.csdn.net/xiaanming/article/details/17483273),请尊重他人的辛勤劳动成果,谢谢以前不理解什么叫回调,天天听人家说加一个回调方法啥的,心里想我草,什么叫回调方法啊?然后自己就在网上找啊找啊找,找了很多也不是很明白,现在知道了,所谓回调:就是A类中调用B类中的某个方法C,然后B类中
2014-10-10 10:42:43 454
android自定义控件自动换行效果实现 简化版demo
2015-04-04
WheelView 显示日期 实例
2014-04-22
StartActivityForResult&onActivityResult 示例
2014-04-22
Android Dialog更改样式及显示位置
2014-04-09
图片异步加载,照片墙,异步加载listview图片2
2013-08-18
图片异步加载,照片墙,异步加载listview中的图片
2013-08-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人