i followed the api and searched for some functions for the ScrollView Movement.
At first i wrote some code to check if this 3 functions work...
Code: Select all
articleViewPager.TouchStart(Location.LowerCenter);
articleViewPager.TouchMove(Location.UpperCenter);
articleViewPager.TouchEnd(Location.LowerCenter);
Code: Select all
articleViewPager.TouchStart(Location.LowerCenter);
articleViewPager.TouchMove(Location.UpperCenter);
Delay.Milliseconds(200);
articleViewPager.TouchEnd(Location.LowerCenter);
Now he haven't scrolled. He just touched and didn't moved. I builded a workaround for this.
Code: Select all
articleViewPager.TouchStart(Location.LowerCenter);
articleViewPager.TouchMove(Location.UpperCenter);
articleViewPager.TouchEnd(Location.UpperCenter);
if(deviceName == "Nexus 7"){
Delay.Milliseconds(20);
articleViewPager.TouchStart(0,50);
articleViewPager.TouchMove(0,60);
articleViewPager.TouchEnd(0,60);
}
I tried this tests on some other devices and i've got the exact same result.
Now here are the questions:
Is there any possible functions or API-Elements to scroll safely? Is there any possible functions or code snippets that checks if the end of an webView-element (android-element) is reached (Scrolling Down/Y-coordinade/Blue-Overscrolling-Gradient) if the normal way for checking the y-choordinade isn't possible?