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
Yes it is possible
Create a drawable
border.xml
****In your code..****
finally adjust your layout as you need