Work around Robolectric bug not computing TextView size correctly #2031
Labels
bug
End user-perceivable behaviors which are not desirable.
Impact: Medium
Moderate perceived user impact (non-blocking bugs and general improvements).
Issue: Needs Clarification
Indicates that an issue needs more detail in order to be able to be acted upon.
Work: Medium
The means to find the solution is clear, but it isn't at good-first-issue level yet.
Z-ibt
Temporary label for Ben to keep track of issues he's triaged.
#1923 has context. Robolectric has a bug where it doesn't compute TextView sizes correctly (it assumes each character is 1 pixel wide), which leads to incorrect layouts in our Robolectric tests. Fixing this within Robolectric is probably practically infeasible, so we need to fix this with a workaround shadow that actually computes a reasonable text size for texts.
The text was updated successfully, but these errors were encountered: