jonasxd360
jonasxd360

Reputation: 1265

how to code the new material design textfields in android (editText)

How do you code these new material design text fields in android?

EditText doesn't look like that, right?

https://material.io/design/components/text-fields.html#anatomy enter image description here

Thank you for your help!

Upvotes: 0

Views: 180

Answers (1)

Stanislav Shamilov
Stanislav Shamilov

Reputation: 1826

For such design you can try using the androidX set of libraries. Simultaneously with package changes, they rolled out a set of new widgets, styles and so on. So in your case you should have used an EditText from the androidX library and a style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox style

Upvotes: 1

Related Questions