做用户注册,要判断用户名不少于4个字母,应该怎么做判断?
androidstudio吧
全部回复
仅看楼主
level 1
做用户注册,要判断用户名不少于4个字母,应该怎么做判断?[困成狗]
2020年02月16日 11点02分 1
level 9
判断输入字符数目
2020年02月17日 13点02分 2
level 9
edittext.getText().toString().trim().Length()>4
2020年02月17日 23点02分 3
level 3
写个正则表达式string.matches("^\\w{4,}$")
2020年02月25日 03点02分 4
1