[android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Zsolt Vasvari
My widget is showing the user's upcoming bills -- it's kind of useless if you can only display 1 or 2 to cater to the least common denominator. If there are all kinds of variations possible, I think some sort API is needed about the size so that I can make an intelligent decision on what to displa

Re: [android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Dianne Hackborn
You really shouldn't make widgets that are so sensitive to size. Note that app widgets are not well defined about the size they will get -- they are a very general mechanism, and all kinds of things can host them. Today the built-in launcher does, and most third party launchers support them as we

[android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Zsolt Vasvari
Well, this whole thing is part of work I have to do to fix up my widgets. I have a widget that lists a number of items. On HDPI, I can fit 5 items, while on MDPI, only 4. I thought that I'd put the number of rows as an "integer" resource. Since I don't know what the correct values should be for