Monday, March 12, 2012

[android-developers] Robotium horizontalscroll using solo


Hi All,
 
I have 2 galary views in my app. I want to scroll right on 2nd galary view.
 
here is my code but its not working..

ArrayList<View> views =

solo.getCurrentViews();

for (int i=0;i<views.size();i++) {

View vi = views.get(i);

if (vi.getId() == R.id.gallery1)

solo.scrollToSide(22);

solo.clickOnView(vi);

}

even,

solo.scrollToSide(solo.RIGHT);

is also not working.

Is der any one who knows about this.

 

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment