摘要: 如下代码是否能被编译通过?private class Firework { private double weight = 0; private boolean compare(Firework work) { return weight == work.weight; ... 阅读全文
posted @ 2014-08-14 08:44 feitianlee 阅读(217) 评论(0) 推荐(0) 编辑
摘要: public static Bitmap getCircleBitmap( Bitmap sourceBitmap) { if(null == sourceBitmap) { return null; } Bitmap output = Bitmap.createB... 阅读全文
posted @ 2014-08-07 16:03 feitianlee 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 动态注册BroadcastReceiver时有时候会遇到这个异常:android.content.ReceiverCallNotAllowedException: BroadcastReceiver components are not allowed to register to receive ... 阅读全文
posted @ 2014-08-04 14:55 feitianlee 阅读(2399) 评论(0) 推荐(0) 编辑
摘要: 如何设置list view中的item的高度呢?示例如下: //直接在这里设置高度是不会生效的。 按照如下修改: 另外,如何避免list view adapter反复getivew?list view在layout种设置时width/height 为match_parent. 或... 阅读全文
posted @ 2014-07-28 15:17 feitianlee 阅读(1567) 评论(1) 推荐(0) 编辑