摘要: 这里我们只关注一句话:This is where you should do all of your normal static set up。其中我们只关注normal static,normal:常规的、通常的、一般的 。static:静态的,不变的 onCreate( )方法是androi... 阅读全文
posted @ 2015-03-19 20:23 jenson138 阅读(4421) 评论(0) 推荐(2) 编辑
摘要: 将EditText内容转换为字符串:EditText.getText().toString() 1 13 14 //设为默认光标位置实例:int num = Integer.valueOf(EditText.getText().t... 阅读全文
posted @ 2015-03-19 15:15 jenson138 阅读(341) 评论(0) 推荐(1) 编辑
摘要: (转自:http://www.cnblogs.com/happyPawpaw/archive/2013/04/09/3009553.html)用法一:常量在JDK1.5 之前,我们定义常量都是: public static fianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型... 阅读全文
posted @ 2015-03-19 10:55 jenson138 阅读(6160) 评论(0) 推荐(1) 编辑