HOW TO CHANGE COLOR OF HINT TEXT IN ANDROID

You can easily change the color of hint text of EditText widget in Android by adding android:textColorHint in your XML file. For Example:

Alternatively you can change the color through themes. Open style.xml and define a theme as given

HOW TO RESTRICT TEXTVIEW TO ONE LINE IN ANDROID

Restricting or limiting TextView to one or any number of lines is quite easy. You just need to use the attribute android:maxLines in your XML file.

You can also limit the number of lines in TextView programmatically in your