I tried to implement on fresh project to understand your scenario .
Please take a look into solution.I have attached screenshot of how it will look.
You have to include drawable in drawable folder and set it into background of TextInputEditText
round_corner_toggle.xml
-
-
Content for TextInputLayout