Custom TextInputLayout android [duplicate]
问题 This question already has answers here : Outlined Edit Text from Material Design (5 answers) Closed last year . I am trying to create custom TextInputLayout . How can I create below custom TextInputLayout ? 回答1: 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 回答2: Here is an workaround: 1. Design your layout structure as below: