Input instructions on Android
When a label might not describe the requested input sufficiently, you should add additional instructions. For example, if passwords are required to be at least 8 characters, indicate this to users.
On Android, you can use a TextView
to show instructions.
You can also use a TextInputLayout
, which contains a setHelperText
method to provide instructions. To show instructions, you need to set setHelperTextEnabled
to true
.
input.setHelperTextEnabled(true)
input.setHelperText("Your password should be at least 8 characters.")