Closed GoogleCodeExporter closed 9 years ago
Thanks for this. Does it scroll when first not finding the text?
Original comment by renasr...@gmail.com
on 15 Nov 2011 at 3:15
No, no scroll is made.
Also i use a custom view for scrolling since i need scrolling bot vertically
and horizontally. Can this be the issue?
Andrei
Original comment by amarkov...@gmail.com
on 15 Nov 2011 at 3:20
This is the scroll view used:
http://blog.gorges.us/wp-content/uploads/TwoDScrollView.java
Original comment by amarkov...@gmail.com
on 15 Nov 2011 at 3:23
The problem here is that scrollDown() only checks if your using a scroll view
or a list view (also extending them with custom views). That is why it does not
scroll as it only finds a framelayout. Right now there is no plan to change
that behaviour as it would be hard to determine when a framelayout can scroll
or not.
The best thing would be if you can change your custom view so that it extends a
scroll view and then add the changes needed in your custom scroll view instead.
Original comment by renasr...@gmail.com
on 15 Nov 2011 at 3:32
Also what happens if i have for example a listview and also a scroll view in my
layout: will the search scroll all of them searching for my text?
Original comment by amarkov...@gmail.com
on 15 Nov 2011 at 3:32
The ones that are visible will be scrolled yes. It will first scroll down the
scroll view and then the list view (if that is the setup) If you for example
have an application with tabs you will need to first click the right tab and
then search. Its not possible to add this behaviour for a framelayout though as
every custom version of the framelayout will have its own special way of
scrolling (which robotium will not know about).
Original comment by renasr...@gmail.com
on 15 Nov 2011 at 3:38
Original issue reported on code.google.com by
amarkov...@gmail.com
on 15 Nov 2011 at 3:01