AndroidStaggeredGrid icon indicating copy to clipboard operation
AndroidStaggeredGrid copied to clipboard

UiAutomator doesn't operate properly

Open flo-genymobile opened this issue 10 years ago • 1 comments

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

flo-genymobile avatar Jun 24 '14 12:06 flo-genymobile

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).

blundell avatar Jun 24 '14 13:06 blundell