摘要: 1.快速添加add unimplements methods:  右键generate 2.快速添加try-catch:左边就有一个小电灯,然后可以选。  3.格式化OPTION + CMD + L (Mac) 阅读全文
posted @ 2016-03-09 13:46 LarryLawrence 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.在Fragment的OnCreateView中如果要调用TextView,应该用: TextView tv = (TextView)rootView.findViewById(R.id.tv1); 而不能用Activity中常用的: TextView tv = (TextView)getView 阅读全文
posted @ 2016-03-09 10:53 LarryLawrence 阅读(114) 评论(0) 推荐(0) 编辑