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