2017-11-09 18 views

答えて

0

は、私はあなたがエラーの代わりに

editText.setError(getString(R.string.error_required)); 

を設定するべきだと思いますが、あなたはしたい場合はその

editText.setHint() 
editText.setHintColor 
0

あなたが投稿した画像に基づいて、ユーザー名/パスワードフィールドに入力されたデータがない場合、そのヒントを表示するのは非常に簡単です。

if(username.isEmpty()) 
{ 
    usernameEditTextView.setHint("please enter username"); 
    usernameEditTextView.setHintTextColor(R.color.Red); 
} 
関連する問題

 関連する問題