On Sun, Apr 19, 2009 at 12:31 PM, Mark Murphy <mmur...@commonsware.com> wrote:
>
> Lucius Fox wrote:
>> Do I need to set the height/width specifically for my ImageView to
>> match my backgroundDrawable? Or it will pick up automatically.
>
> ImageView scales the image to fit the view size, not the other way
> around. I would assume you need to tell the ImageView's layout the new
> size to use for the ImageView to prevent such scaling.
>
Thank you. How can I set the ImageView in java code programically?
I tried calling imageView.setMinimumWidth(), setMinimumHeight(), but
Hierchary View still shows the width is 80 and height is 100.

Can you please tell me how to solve my problem?

Thank you.

> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android App Developer Training: http://commonsware.com/training.html
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to