でのEditTextヒントの色を変更するには、のEditTextヒントは、このlogin(赤色に点灯)のように、警告を表示します。これをどのように実装できますか?は私が<a href="https://i.stack.imgur.com/CoiNq.png" rel="nofollow noreferrer">login</a></p> <p>を持っているかアンドロイド
0
A
答えて
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);
}
関連する問題
- 1. 私は<a href="https://omeka.org/" rel="nofollow noreferrer">Omeka</a>の私の元のインスタンスを持つリモートサーバー持って
- 2. Tabキーは、私が<a href="http://%20http://tulipindia.biz/associate_form.php" rel="nofollow">this form</a>を持って
- 3. の画像は、私はgithubのページに<a href="http://calebbertrand.github.io" rel="nofollow noreferrer">website</a>を持って
- 4. ハイライトは、私は次のコードを持っている<a href="https://github.com/mojombo/jekyll" rel="nofollow">jekyll</a></p> <p>で<a href="http://pygments.org/" rel="nofollow">pygments</a>を使用したい
- 5. は、私がこの<a href="http://pastebin.com/B8ERBD4L" rel="nofollow">SQL</a></p> <p>を持っているか、SQLサーバー
- 6. .htaccessファイルは、私はDebianの8の上だと私は<a href="http://my-domain.unice.fr/social" rel="nofollow">http://my-domain.unice.fr/social</a>でウェブサイトを持っていると私は私が持っている私の.htaccessで<a href="http://my-domain.unice./" rel="nofollow">http://my-domain.unice./</a></p> <p>でこれをリダイレクトしたい
- 7. 私は<a href="http://doc.qt.io/archives/qt-4.7/qtcpserver.html" rel="nofollow">QTcpServer</a>のサブクラスを持ってQTcpServer
- 8. FacebookのJS SDKは、私が<a href="http://apps.facebook.com/insideny/" rel="nofollow">http://apps.facebook.com/insideny/</a></p> <p>でFBのキャンバスアプリを持っているFB.Login
- 9. 私は<a href="https://www.primefaces.org/primeng/#/" rel="nofollow noreferrer">PrimeNG</a><p> </p><a href="https://www.primefaces.org/" rel="nofollow noreferrer">primefaces.org</a>からすべてがうまく機能している使用しています
- 10. 展開煎茶/ jQueryのモバイルつのタッチが、私は<a href="http://www.sencha.com/products/touch/" rel="nofollow">Sencha</a>または<a href="http://jquerymobile.com/demos/1.0a2/" rel="nofollow">JQuery Mobile</a>を使用して思っていたアンドロイド/ IPhone
- 11. JS:<a href="https://jsfiddle.net/qftcjcbp/3/" rel="nofollow"><strong>JS Fiddle</strong></a>:リンク私はカルーセルを持っているカルーセル
- 12. アンドロイドのjava.lang.NullPointerException:私はCubeLayoutクラスで<br> <a href="https://github.com/justomiguel/AndroidCubeDemo" rel="nofollow">Android Cube Demo</a></p> <p>を使用していインタフェースメソッド
- 13. は私が<a href="https://cloud.google.com/pubsub/docs" rel="nofollow noreferrer">Pub/Sub</a>トピック+サブスクリプションを持っているし、消費し、<a href="https://cloud.google.com/dataflow/docs" rel="nofollow noreferrer">Dataflow</a>にサブスクリプションからの無制限のデータを集計するデフォルトのトリガー
- 14. LinuxのAPPENDパスは、私が<a href="https://github.com/pyenv/pyenv" rel="nofollow noreferrer">pyenv</a>をインストールしている
- 15. DVWAは、私が<a href="http://www.dvwa.co.uk/" rel="nofollow noreferrer">DVWA</a>を設定している
- 16. は<a href="http://www.pygame.org/docs/ref/rect.html" rel="nofollow">documentation</a>から何か
- 17. キャプチャは、私は自分のサイト上のキャプチャを持って<a href="http://sketchedneo.com/jointest.php" rel="nofollow">http://sketchedneo.com/jointest.php</a></p> <p>を
- 18. Rプロット:(。<a href="https://commons.wikimedia.org/wiki/File:All_palaeotemps.svg" rel="nofollow noreferrer">Original image</a>と<a href="http://gergs.net/?attachment_id=4310" rel="nofollow noreferrer">data</a>)非一様番号
- 19. 私はIMDB</p> <p><a href="http://pasted.co/0a2fe87f" rel="nofollow noreferrer">Json</a></p> <p>コードから、次のJSONを持つJSON
- 20. GoJSジェノグラムは、私が唯一知っている <a href="https://gojs.net/latest/samples/genogram.html" rel="nofollow">GoJS Genogram</a></p> <p>の例では、カスタム
- 21. は私が<a href="http://livevalidation.com" rel="nofollow">livevalidation</a>プラグインを使用しています
- 22. ObjectMapperが、私は<a href="https://github.com/tristanhimmelman/AlamofireObjectMapper" rel="nofollow">AlamofireObjectMapper</a>を使用しています応答
- 23. は、私が<a href="http://apionrails.icalialabs.com/book/chapter_two" rel="nofollow">APIonRails tutorial</a>を使用しています
- 24. エラーは、私が<a href="https://github.com/indexzero/http-server" rel="nofollow noreferrer">http-server</a>を使用してい
- 25. 私はこのようにそれを実装<a href="http://jqueryui.com/autocomplete/" rel="nofollow noreferrer">http://jqueryui.com/autocomplete/</a></p> <p>からウィジェットを持っ
- 26. fullpagejsは - 私は<a href="https://github.com/alvarotrigo/fullPage.js#fullpagejs" rel="nofollow noreferrer">fullpagejs</a>を使用しているテンプレート
- 27. は私が<a href="https://www.mercurial-scm.org/quickstart" rel="nofollow noreferrer">this article</a>に従っ
- 28. 私はターミナルで<a href="http://beginrescueend.com/rvm/install/" rel="nofollow">http://beginrescueend.com/rvm/install/</a>と<a href="http://beginrescueend.com/rvm/basics/" rel="nofollow">http://beginrescueend.com/rvm/basics/</a></p> <p>上のすべての指示に従ってきたルビー
- 29. は、Java用<a href="http://www.magnolia-cms.com/" rel="nofollow">MAGNOLIA</a></p> <p>CMSを使用する
- 30. 私は* <a href="http://python.codnex.net/index.php" rel="nofollow noreferrer">http://python.codnex.net/index.php</a> *を使用しているのpython