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?