Custom TextInputLayout android

dreamfire picture dreamfire · Jul 3, 2017 · Viewed 19.5k times · Source

I am trying to create custom TextInputLayout. How can I create below custom TextInputLayout? enter image description here

Answer

Francis picture Francis · Sep 3, 2018

You should use Material Design style for Outline Box. Just simple use:

style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"

in TextInputLayout. See Text Field for Android in Material Design Guide

enter image description here