我有一个可拖动列表视图,每个项目都有一个标题和图像按钮来删除该项目。如何单击图像视图?
clickInList(int , int) 不起作用(除非我做错了?)
尝试 clickOnText(String) 或 clickOnImage(int) clickOnImageButton(int) 代替
尝试获取列表项的视图,如下所示:
//get the list view
ListView myList = (ListView)solo.getView(R.id.list);
//get the list element at the position you want
View listElement = myLyst.getChildAt(position);
//click on imageView inside that list element
solo.clickOnView(solo.getView(listEelement.findViewById(R.id.image_button)));