Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Standard TextInputEditText hint overlaps TextInputLayout startIconDrawable on screenshot #295

Open
oradkovsky opened this issue Sep 24, 2021 · 0 comments

Comments

@oradkovsky
Copy link

Hello!

I'm observing this behavior with latest version of this beautiful library, running on SDK 26 emulator:

image

...for this simple setup:

    <com.google.android.material.textfield.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="16dp"
        app:startIconDrawable="@drawable/ic_card_filled">

        <com.google.android.material.textfield.TextInputEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Text as hint" />

    </com.google.android.material.textfield.TextInputLayout>

I'm doing noting really fancy actually, and the same layout works fine if app is rendering it:

        val targetContext: Context = InstrumentationRegistry.getInstrumentation().targetContext
        val inflater = LayoutInflater.from(targetContext)
        val view: View = inflater.inflate(R.layout.layout1, null, false)
        ViewHelpers.setupView(view).setExactWidthDp(400).layout()
        Screenshot.snap(view).record()

Please let me know if any ideas on how to workaround such behavior?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant