> sorry my fault. I wasn't specific enough. Should I pur R.drawable.imagename
> or what? R.drawable.imagename is an integer so what would be the drawable
> version of that?
There is no "Drawable version of that".
At the risk of quoting myself:
An ImageView may not have a "current image resource",
since it may not have been populated with a resource in the first
place (e.g., loaded with a bitmap from a downloaded PNG file). If you
are trying to use getDrawable() to tell what your "current image
resource" is, that will not work.
>
> On Sun, Apr 3, 2011 at 1:28 AM, Mark Murphy <mmurphy@commonsware.com> wrote:
>>
>> On Sat, Apr 2, 2011 at 3:53 PM, Raghav Sood <raghavsood@gmail.com> wrote:
>> > I found that out. I need to use this for an if else. What value do I
>> > need to
>> > put on the other side of the ==?
>>
>> How should I know?
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to *Advanced* Android Development_ Version
>> 1.9.2 Available!
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> Raghav Sood
> http://www.raghavsood.com/
> http://www.androidappcheck.com/
> http://www.telstop.tel/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en