Coder Social home page Coder Social logo

Comments (5)

tdrhq avatar tdrhq commented on May 5, 2024

Hmm. I haven't used AppCompatAutoCompleteTextView. Here are a few things you can try:

  1. Run the entire test on the UI thread -- it's possible that the view is posting things on the handler thread . I couldn't see anything obvious in the source code, but it's worth trying because it's an easy fix. (make sure the view is also constructed on the UI thread)

  2. If the above doesn't work, then the view is using the clock directly to determine animation, I've mostly not seen android views do that, though we've encountered a bunch of custom views built internally that does things like that. If this is the case, the solution would involve changing the AppCompatAutoCompleteTextView source code

from screenshot-tests-for-android.

udeyrishi avatar udeyrishi commented on May 5, 2024

Running the entire test on the main thread doesn't seem to fix the issue. So it's either (2) or something else

from screenshot-tests-for-android.

tdrhq avatar tdrhq commented on May 5, 2024

Yeah, unfortunately I don't want to go about debugging issues with specific views, because there can be way too many of these edge cases. But if you have a suggestions on how I might fix this, I could try to do that. Or, you could document how you worked around this in this task for future readers

from screenshot-tests-for-android.

udeyrishi avatar udeyrishi commented on May 5, 2024

I just ended up adding a Thread.sleep before capturing the screenshots as a quick and dirty workaround. I know that this kinda defeats one of the purposes of this library, but it got the job done for the time being.

from screenshot-tests-for-android.

giljulio avatar giljulio commented on May 5, 2024

Disabling animation of the TextInputLayout does the trick layout.setHintAnimationEnabled(false);

from screenshot-tests-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.