Hello,
"I get an error of "R.id.Imageview01 cannot be resolved" when I try
this."
- You need to find your own proper resource id.
" Drawable name = ImageView.getDrawable(); "
- ImageView is a type, how do you think it is possible to get drawable from a type? :)
Try to iterate through all views using solo.getViews();
Implement any kind of loop through this collection and check if View is instance of ImageView:
for(View testView: solo.getViews()) {
if(testView instanceof ImageView) {
// You have found it and can manipulate with its instance after casting:
ImageView myImageToTest = (ImageView) testView;
// TODO: add any logic you need.
// Cancel cycle if correct view was found:
break;
}
}
Please let me know what kind of road stones do you have.
Best regards,
Yahor