Friday, February 25, 2011

Re: [android-developers] How to i adjust the width of an imageview in the java code

Have you tried the setMaxWidth() as per the ImageView docs?
You *may* have to use setLayoutParams.  Haven't tried this myself, but again it's what the docs say.

On Fri, Feb 25, 2011 at 10:05 PM, brian purgert <brianpurgert2@gmail.com> wrote:

I have a battery and on top of the battery i have a patch 9 png image that is the "battery filler" my question is how do i change the with of this image view.

--
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



--
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

--
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

No comments:

Post a Comment