There is iOS US2FormValidator library for user input validation (see the picture below). I think that library is better than the default of just popping an alert when something doesn’t validate.

I’m looking for how to do such things on Android. Are there some Android analogs of US2FormValidator?
The pop-up effect you have shown on your screenshot can be achieved using Android’s built-in
setError(String)method onEditTextwidgets.Also, you can leverage the power of annotations using the Android Saripaar library that I’ve authored.
first add the library:
The library is very simple to use. In your activity annotate the
Viewreferences you would like to validate as in the following example.The
orderattribute specifies the order in which the fields have to be validated.In your
onCreate()method instantiate a newValidatorobject. and callvalidator.validate()inside any of your event listeners.You’ll receive callbacks on
onSuccessandonFailuremethods of theValidationListener.If you want to show a pop-up as show in the image above then do the following,