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] Hint text margin incorrect when initially focused

See original GitHub issue

Description:

Within the latest 1.2.0 alpha, when initially focussed the hint text for a TextInputLayout is not in the correct position and encroaches on the TextInputEditText

android_1_2_alpha01_example

Expected behavior:

This behavior was working on the latest 1.1.0 beta

android_1_1_beta01_example

Source code: Will update issue when available

Android API version: Android 10 (API 29)

Material Library version: 1.2.0-alpha01

Device: Pixel 3a XL

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
ShaoLongFeicommented, Sep 10, 2020

why close? Many people have this problem.

0reactions
amirhosenebrahimicommented, Feb 19, 2022

why close? Many people have this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextInputLayout :How to give padding or margin to hint?
A better trick is to set the desired paddingTop to the EditText but also embed the extra padding within the EditText's background. A...
Read more >
TextInputEditText how can align hint to the top margin - Reddit
I set 5 lines scrollable textInputEditText and I want to show the hint message align to top margin of that text input.
Read more >
Android TextInputLayout Example | DigitalOcean
Floating Hints are enabled by default in a TextInputLayout. To disable it we need to add the following attribute inside the tag :...
Read more >
AutoCompleteTextView - Android Developers
Returns true, only while processing a touch gesture, if the initial touch down event caused focus to move to the text view and...
Read more >
TextInputLayout - Styling Android
We set some hint text on the TextInputLayout and that's our hints done! The error text requires a little more effort but that's...
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