risangprisaltomo / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

getGlobalVisibleRect works differently on API 22 #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a testcase where isDisplayingAtLeast works differently on API 22.

on API 22, isDisplayingAtLeast computes the view is 94% visible and on older 
APIs it is 100% visible.

The View seems to be the same size and fully visible, but 
view.getGlobalVisibleRect returns a smaller rect.

isDisplayingAtLeast should work the same across API levels.

Original issue reported on code.google.com by YogurtE...@gmail.com on 26 Jun 2015 at 3:06