Savage F. Morgan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理


posted @ 2015-01-12 14:35 罗斯摩根 阅读(269) 评论(0) 推荐(0) 编辑


摘要: he default Locale is constructed statically at runtime for your application process from the system property settings, so it will represent the Locale... 阅读全文
posted @ 2015-01-05 09:29 罗斯摩根 阅读(576) 评论(0) 推荐(0) 编辑


摘要: I really like the new PopupMenu we got in 3.0, but I just can't display any icons next to the menu items in it. I'm inflating the menu from the .xml b... 阅读全文
posted @ 2014-11-17 10:45 罗斯摩根 阅读(439) 评论(0) 推荐(0) 编辑


摘要: I have I double value like this one 17.125. It should be rounded up to 17.13If I use the simple method like %.2f it shows me 17.12 I also followed sev... 阅读全文
posted @ 2014-11-03 16:42 罗斯摩根 阅读(371) 评论(0) 推荐(0) 编辑


摘要: String are immutable in Java. You can't change them.You need to create a new string with the character replaced.String myName = "domanokz";String newN... 阅读全文
posted @ 2014-10-29 11:32 罗斯摩根 阅读(372) 评论(0) 推荐(0) 编辑


摘要: You can do it by 2 ways:use loadImage(...) and set layout background in listener (ImageLoadingListener.onLoadingComplete(..., Bitmap loadedImage, ...)... 阅读全文
posted @ 2014-10-08 16:01 罗斯摩根 阅读(744) 评论(0) 推荐(0) 编辑


摘要: 转帖请注明本文出自xiaanming的博客(,请尊重他人的辛勤劳动成果,谢谢以前不理解什么叫回调,天天听人家说加一个回调方法啥的,心里想我草,什么叫回调方法啊?然后自己就在网上找啊找啊找,... 阅读全文
posted @ 2014-08-25 15:03 罗斯摩根 阅读(256) 评论(0) 推荐(0) 编辑


摘要: Convert NSString to intNSString *aNumberString = @"123";int i = [aNumberString intValue];Convert int to NSStringint aNumber = 123;NSString *aString = ... 阅读全文
posted @ 2014-08-13 09:48 罗斯摩根 阅读(198) 评论(0) 推荐(0) 编辑


摘要: 在 实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用 来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如 Button、... 阅读全文
posted @ 2014-07-24 16:02 罗斯摩根 阅读(12833) 评论(0) 推荐(1) 编辑


摘要: Creating "IOS Project" in xcode 5 causes the following when launching for iPad simulator. The application works for iPhones configuration. I have set ... 阅读全文
posted @ 2014-07-16 15:44 罗斯摩根 阅读(842) 评论(0) 推荐(0) 编辑