Skip to content

Conversation

@gabrielemariotti
Copy link
Contributor

It closes #1719

When the helperText or the errorText are removed and the counter is visible, the counter view has a wrong position.

Schermata 2020-09-15 alle 08 09 59

It can be replicated in many ways:

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/til"
            app:counterEnabled="true"
            app:counterMaxLength="6"
           ...>

with:

    val textInputLayout: TextInputLayout = findViewById(R.id.til)
    textInputLayout.setEndIconOnClickListener{
        textInputLayout.isHelperTextEnabled = false
    }
    textInputLayout.isHelperTextEnabled = true

or

    val textInputLayout: TextInputLayout = findViewById(R.id.til)
    textInputLayout.isErrorEnabled = true
    textInputLayout.isErrorEnabled= false

@pekingme pekingme self-assigned this Sep 17, 2020
@pekingme pekingme added the Reviewing Internally An internal change has been created and sent for review. label Sep 17, 2020
@pekingme pekingme closed this in 8bcc8ee Sep 24, 2020
@pekingme pekingme added Merged and removed Reviewing Internally An internal change has been created and sent for review. labels Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TextInputLayout] Counter draws on the left if error mode disabled programmatically

3 participants