I am trying to create a layout like in the picture below
In the above picture the password field is in the TextInputLayout and it also have a TextView in the right side
I am trying like below and it is working for me. may be it may help you. Somehow I am unable to use TextView inside TextInputLayout, layout getting crash. But i am able to use ImageViews inside it.