etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

UiAutomator doesn't operate properly #117

Open flo-genymobile opened 10 years ago

flo-genymobile commented 10 years ago

Trying to run UiAutomator on a StaggeredGridView won't work properly after rotations. The behavior is not consistent as sometimes one rotation is enough to break UiAutomator and sometimes you need more but ultimately it will stop working. This seems to be related to the Accessibility Service not being able to properly identify the views.

More details there: https://github.com/novoda/Spikes/tree/master/StaggeredWithAccessibility

blundell commented 10 years ago

This is when you first start the app: exist This is after a few rotations: not_exist As you can see View 4 has gone missing.

Note this is using https://github.com/novoda/Spikes/tree/master/StaggeredWithAccessibility & if you replace AndroidStaggeredGrid with ListView or GridView the issue is not there.


With this simple layout it does not happen that often, but when the complexity of the layout is increased it happens more often. (the complexity of your list items).