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
  • 11,927
  • 11
  • 43
  • 59

0 Answers0