I've got 3 apps on the market now with appwidgets, and in each one I've 
historically used the common pattern of multiple appwidget-providers that 
differ only in size. IOW, in order to provide 4 different sizes of a square 
widget (1x1, 2x2, 3x3, and 4x4) I had 4 separate widgets, and the user just 
picks the size they want. It worked, but it was kludgey, so I was pleased to 
see support for resizable widgets in 3.1.

Problem is, how do I provide any backward-compatibility here? In the above 
case, I really only need one widget on 3.1, with a 
resizeMode="horizontal|vertical" attibute. But I need to keep the other 4 
around, both in my manifest and my /xml resources, for the other 99.7% of my 
users who aren't on 3.1. I can hide the new resizable widget from the older 
OS versions by just putting it in an /xml-v12 directory, but I can't come up 
with a way to hide the 4 old-style widgets from 3.1.

Any ideas, or other ways I might approach this problem? This seems like it'd 
be a very common issue for any app with widgets - practically all of us went 
this route of providing multiple sizes - but I can't see that the platform 
provides any solution. Have I just missed it?

String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to