Re: [android-developers] Changing ImageView's image
On Wed, Mar 30, 2011 at 9:54 AM, Raghav Sood <raghavsood@gmail.com> wrote:
> Thanks. I have already tried that. The code I used was:
> button.setImageResource(Drawable m1s.png);
>
> That didn't work. Is there something wrong or am i using the wrong part of
> the api.
>
setImageResource() takes an image resource (e.g., R.drawable.my_image).
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home