输入
时,我的代码有问题AlertDialog waitingDialog= new SpotsDialog(MainActivity.this);
整行都带有下划线”,弹出消息
需要android.support.v7.app.AlertDialog,但找到了dmax.dialog.SpotsDialog
实现'com.github.d-max:spots-dialog:0.7@aar'
我添加了这个:
if (edtPassword.getText().toString().length() < 6) {
Snackbar.make(rootLayout, "Password too short", Snackbar.LENGTH_SHORT)
.show();
return;
}
final AlertDialog waitingDialog = new SpotsDialog(MainActivity.this);
waitingDialog.show();