Android: How to compare resource of an image with R.drawable.imagename?
问题 I am working on a sample application in which I need to get the resource of an image view in a onClick listener and compare that with the image source that I know exists. If the resources are the same, I want to launch another intent. The problem I am facing right now is to access that ImageView (and hence its resource Id integer) to compare to the drawable resource. @Override // should int be final ?? public View getView(final int position, View convertView, ViewGroup parent) { ImageView