I've been down the road with my widgets when I tried them on 2.3. I wasted about a week of my development time on this problem. Remember my thread?
http://groups.google.com/group/android-developers/browse_thread/thread/6fa088c7640ca9b2/9bba78001843642b It's very frustrating that the widget cell size was changed without it being documented and that it's impossible to prepare for it in a non- hackish way. I find the overall SDK/API quality excellent, but the widget API gets at most a C in my book. The good thing is, if the Honeycomb preview video is any indication, this will all change in 3.0 as it appears to support scrolliing widgets. On Jan 10, 6:01 am, Kostya Vasilyev <kmans...@gmail.com> wrote: > Exactly. > > Causing even more trouble if you're trying to make widgets that: > > - Fit into the home screen grid; > - Look good; > - Don't take up the entire screen width. > > Replacement home screens and different Android versions add even more > uncertainty (Mark posted exact numbers on how 2.3 vs. previous versions > allocate real estate for widgets vs. other home screen elements). > > I think this has gotten to the point where some assistance from the > framework is needed. > > My suggestions would be: > > - A way to query home screen cell size used by the launcher that created > the widget; > > - A sizing unit that equals one cell in the appropriate dimension, which > could be used in widget layout xml's. > > -- Kostya > > 10.01.2011 0:39, Dianne Hackborn пишет: > > > > > > > This is not simple. Even for a single widget instance in a specific > > widget host, its dimensions can (and typically do) change slightly > > when the screen switches between landscape and portrait. > > > On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev <kmans...@gmail.com > > <mailto:kmans...@gmail.com>> wrote: > > > That's not it, this is backwards - the widget telling the home > > screen its minimal size. > > > The size here is specified in units that are independent of > > launcher version or its actual implementation (replacement). > > > -- Kostya > > > 10.01.2011 0:21, String пишет: > >> On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: > > >> It's really too bad there is no way to query widget cell size > >> or use it > > >> http://developer.android.com/reference/android/appwidget/AppWidgetPro... > > >> String > >> -- > >> 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 > >> <mailto:android-developers@googlegroups.com> > >> To unsubscribe from this group, send email to > >> android-developers+unsubscr...@googlegroups.com > >> <mailto:android-developers+unsubscr...@googlegroups.com> > >> For more options, visit this group at > >> http://groups.google.com/group/android-developers?hl=en > > > -- > > Kostya Vasilyev -- WiFi Manager + pretty widget > > --http://kmansoft.wordpress.com > > > -- > > 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 > > <mailto:android-developers@googlegroups.com> > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > <mailto:android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com <mailto:hack...@android.com> > > > Note: please don't send private questions to me, as I don't have time > > to provide private support, and so won't reply to such e-mails. All > > such questions should be posted on public forums, where I and others > > can see and answer them. > > > -- > > 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 > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com- Hide quoted text - > > - Show quoted text - -- 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