You could make your own subclass that keeps track of the id. Since there are many cases were an ImageView isn't displaying a resource at all (or can't know that what it is displaying came from a resource if it did), having an API to get that seems a little questionable.
On Wed, Sep 2, 2009 at 8:08 AM, sdphil <[email protected]> wrote: > > is there a way to get the resource id associated with an ImageView? > > you can set one using -- ImageView.setImageResource() -- > > sure what be nice if there was a -- ImageView.getImageResource(). > > tia. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

