Toast沒有顯示
//驗證登錄用戶輸入合法性 public?static?boolean?validateLogin(Context?context,String?phone,String?password){ ????if(!RegexUtils.isMobileExact(phone)){ ????????Toast.makeText(context,"無效手機號",Toast.LENGTH_SHORT); ????????return?false; ????} ????if(TextUtils.isEmpty(password)){ ????????Toast.makeText(context,"請輸入密碼",Toast.LENGTH_SHORT); ????????return?false; ????} ????return?true; }
2020-02-22
添加
.show()
2020-03-18
少了 ?.Show();沒這個,當然不顯示了,我以前也遇到過?
2020-02-26
少了 ?.Show();
2019-12-26
代碼沒有問題,那你在login.xml里面寫點擊事件沒有,需要在Button里面調用onCommitClick方法
2019-10-25
合法性驗證功能沒有問題