摘要: Activity跳转与传值,主要是通过Intent类,Intent的作用是激活组件和附带数据。一、Activity跳转方法一Intent intent = new Intent(A.this, B.class);startActivity(intent)方法二Intent intent = new ... 阅读全文
posted @ 2014-07-24 16:58 涵野 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: if(TextUtils.isEmpty(item)){ Toast.makeText(this,"为空", Toast.LENGTH_SHORT).show();} 阅读全文
posted @ 2014-07-24 14:43 涵野 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 再者代码里面设置输入法类型:[java] editText.setInputType(EditorInfo.TYPE_CLASS_PHONE);editText.setInputType(EditorInfo.TYPE_CLASS_PHONE);则如果该EditText获得焦点,会弹出数字输入法的模... 阅读全文
posted @ 2014-07-24 14:42 涵野 阅读(14226) 评论(0) 推荐(0) 编辑