EditText with TextInputlayout layout With hint and Border

Bhavin Jadav picture Bhavin Jadav · Nov 21, 2017 · Viewed 10.2k times · Source

enter image description here

I want EditText like one in above image. The problem is that if I use TextInputLayout it shows default bar at the bottom and I want it with custom borders around it.

I also tried using the below examples,

Custom TextInputLayout android

Answer

Edwin Nyawoli picture Edwin Nyawoli · Jun 3, 2019

Use the Material Design Outline Box style

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

See the design guide here