question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TextInputLayout] TextInputLayout legacy design

See original GitHub issue

Is your feature request related to a problem? Please describe. After migrate to com.google.android.material:material my TextInputLayout are fall in FilledBox style. Before that, my TextFields are like here. Screen Shot 2019-10-17 at 4 22 48 PM. My problems is I don’t know how do i get that my original TextInputLayout style are back

Describe the solution you’d like I guess, We could add another themes Legacy that kinds of things. Currently there are only 2 Theme for TextInputLayout -> FilledBox and OutlinedBox

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
leticiarossicommented, Oct 25, 2019
3reactions
ValCanBuildcommented, Oct 21, 2019

You can get the old style back by setting boxBackgroundMode to none in your TextInputLayout style.

For example:

    <style name="TextInputLayout.NoBorder" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
        <item name="boxBackgroundMode">none</item>
    </style>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Android TextInputLayout legacy style - Stack Overflow
You can use: <com.google.android.material.textfield.TextInputLayout style="@style/Widget.Design.TextInputLayout".
Read more >
TextInputLayout | Android Developers
Layout which wraps a TextInputEditText , EditText , or descendant to show a floating label when the hint is hidden while the user...
Read more >
How to use TextInputLayout in new android design library – iTecNote
Recently google introduced new Android Design Library in that how to use TextInputLayout field to enable the Floating Hint feature of EditText. Not...
Read more >
Migrating to Material Components for Android
To revert back to the legacy text field, adjust the style in your layout to ... App.TextInputLayout” parent=”Widget.Design.TextInputLayout”>
Read more >
android.support.design.widget.TextInputLayout.getEditText ...
Best Java code snippets using android.support.design.widget.TextInputLayout.getEditText (Showing top 20 results out of 315) · LoginActivity.doAction().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found