单击图像。当我使用Robotium点击图片上这样的可扩展列表视图的第一项:可扩展列表视图滚动到列表视图中
ListView listview = getCurrentListView().getChildAt(1); //get feed listview.
for(ImageView view : solo.getCurrentImageViews(listview))
{
if(view.getId() == R.id.image) //all images in the feed listview shares the same ID.
{
solo.clickonview(view);
break; //get the first image then break the loop.
}
}
的扩张列表视图滚动。 使用logcat,我相信,我已经得到了第一个图像。但是当solo.clickonview,它不起作用,并且listview开始滚动到最后一个。 为什么会发生?
是否有一些方法来完成场景?
它的工作原理,感谢您的帮助。 – salomon