We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditText用m驼峰命名方法生成的代码: private EditText mEdit; mEdit = (EditText) findViewById(R.id.edit); private void submit() { // validate String editString = edit.getText().toString().trim(); if (TextUtils.isEmpty(editString)) { Toast.makeText(this, "editString不能为空", Toast.LENGTH_SHORT).show(); return; } }
加粗的地方变量名不是mEdit, 导致找不到.
The text was updated successfully, but these errors were encountered:
难道作者不维护了么。。 editString不能为空如果能到名字就更好了
Sorry, something went wrong.
还在维护呢~ 最近工作比较忙 过段时间会统一处理一批问题~
No branches or pull requests
EditText用m驼峰命名方法生成的代码:
private EditText mEdit;
mEdit = (EditText) findViewById(R.id.edit);
private void submit() {
// validate
String editString = edit.getText().toString().trim();
if (TextUtils.isEmpty(editString)) {
Toast.makeText(this, "editString不能为空", Toast.LENGTH_SHORT).show();
return;
}
}
加粗的地方变量名不是mEdit, 导致找不到.
The text was updated successfully, but these errors were encountered: