This is a gist that was built for my post on TextInputLayouts here: http://w3bshark.com/blog/input-layouts
It is an example of how making back-to-back calls to the setError()
functionality
for the same text input layout will cause the text input layout
to only display the error that was set originally instead of the final error that was set.