android tutorial - Developer android | Specifying Text Hints in Android Editext - android app development - android studio - android app developement



Specifying Text Hints

  • It is possible to specify a text hint when using EditTexts. Text hints are useful for conveying to the user what they should type in the EditText.

In XML:

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="username" />
click below button to copy code from our android learning website - android tutorial - team

The content of the hint (in our example, 'username') can be anything you like.


Related Searches to Specifying Text Hints in Android Editext