xiaofans / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Issue 345 still reproducing: Scroll down don't scroll large list items #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create list item that will be bigger than a screen size
2. Try to scroll it down

What is the expected output? 
Screen will be scrolled down to next item.

What do you see instead?
Screen stays at the same place. ScrollDown will return true forever.

What version of the product are you using? On what operating system?
3.6 on Windows7 x64

Original issue reported on code.google.com by sergey.t...@gmail.com on 7 Jan 2013 at 7:03

GoogleCodeExporter commented 9 years ago
Unfortunately there is no way to scroll screen by screen and even if there was 
a way it is not possible to know if one has come to the end of the list (not 
possible to ask the list before api level 14). So Im not sure how to solve 
this. It is possible to scroll by using scrollTo(int x, int y) but the problem 
is again that it is not possible to know when one has reached the end of the 
list (and can not scroll anymore). So unfortunately this will be set to wont 
fix until someone can come up with a good way to solve this issue. 

Original comment by renasr...@gmail.com on 7 Jan 2013 at 7:43

GoogleCodeExporter commented 9 years ago
Renas,
I am not asking here for scroll screen by screen, but I think you have some 
sort of bug in scroll down calculations. In case I have some "bigger than 
screen" list element it will never be scrolled down. From the other hand scroll 
up is working good in same circumstances.

Original comment by sergey.t...@gmail.com on 7 Jan 2013 at 8:34

GoogleCodeExporter commented 9 years ago
The only way I have found that a scroll down calculation can be done is by 
counting lines. This solution however does not work if there is only one line. 
I have not come up with a better way of calculating this. 

Original comment by renasr...@gmail.com on 7 Jan 2013 at 8:43