Re: [android-developers] Re: Listview oddity with imageview

2011-07-23 Thread Simon Platten
I wish I could say it helped but it hasn't. On Sat, Jul 23, 2011 at 1:27 AM, Abhishek Akhani abhishek.akh...@gmail.comwrote: invalidate the view after rotating... hope this may help... -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
Has anyone else encountered this problem? On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten simonaplat...@googlemail.com wrote: I have a listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
Is this a bug or is there a property that needs setting ? On Fri, Jul 22, 2011 at 7:27 AM, Simon Platten simonaplat...@googlemail.com wrote: Has anyone else encountered this problem? On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten simonaplat...@googlemail.com wrote: I have a listview with

Re: [android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Kostya Vasilyev
Try setting a scaleType property on the ImageView, perhaps you can get consistent results that way. 2011/7/23 Simon Platten simonaplat...@googlemail.com: Is this a bug or is there a property that needs setting ? On Fri, Jul 22, 2011 at 7:27 AM, Simon Platten simonaplat...@googlemail.com

Re: [android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
I've tried all the scale type options, no effect, except that it fixes the width and the height doesn't scale correctly. It works exactly as I would expect in the emulator, when on my phone it shrinks after rotation, but if I scroll out of view then back into view its ok...very strange. On

Re: [android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Kostya Vasilyev
Your second paragraph below sounds like a view recycling issue. The emulator and real devices may have some differences there. -- Kostya 23.07.2011 0:54, Simon Platten пишет: I've tried all the scale type options, no effect, except that it fixes the width and the height doesn't scale

[android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Abhishek Akhani
invalidate the view after rotating... hope this may help... -- 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] Re: Listview oddity with imageview

2011-07-21 Thread Simon Platten
It doesn't do this in the emulator, but it does on my Sony X10 running 2.1 On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten simonaplat...@googlemail.com wrote: I have a listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout