2

I'm trying to verify the position of a View on screen but View.getTop or View.getLocationOnScreen() will always return 0.

View.getHeight() is greater than 0 and appears to be correct.

Is this a limitation of Robolectric or is there something I need to setup?

Ljdawson
  • 12,091
  • 11
  • 45
  • 60

0 Answers0