Have a question. I’m using image switcher, and this is the way how I set Image to switcher…
imageSwitcher.setImageResource(some_image_id);
So the question is: How to get image id that is set to image switcher ? I cannot find method like imageSwitcher.getImageId(); Thanks…
ImageSwitcheris a derived class fromViewAnimator, so you can use:to get the index of the currently displayed child view, or:
to get the View corresponding to the currently displayed child.
If you look at the source code, setImageResource(int) adds an ImageView: