Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
TextViews on Robolectric always have width and height 0 #4153
TextViews on Robolectric always seem to have a width and height of 0. This makes Espresso think they are always not displayed
Steps to Reproduce
TextView textView = ....
Robolectric & Android Version
Robolectric 4.0.2, Android 28
Link to a public git repo demonstrating the problem:
I was having the same problem as well, but now issue fixed when used 4.2.1 and setting the width and hight manually in the xml. If they are set to wrap content it doesn't work.
I was able to get it to work by setting minHeight for the TextViews (this should mitigate the issue until we get a fix).