I suppose there might be a way to check the runtime size of your widget and hide/show views based on the available space. I don't know if that's possible.
On Jun 23, 9:19 am, Dianne Hackborn <hack...@android.com> wrote: > Yes this is for widgets whose layouts can resize. Specifically, it is for > things like the new list app widgets and such that intrinsically have an > expandable amount of content. > > > > > > On Wed, Jun 22, 2011 at 4:03 PM, Zsolt Vasvari <zvasv...@gmail.com> wrote: > > While I don't know the answer. I think resizable widgets are for > > things like lists where you would use a weight="1" type of setup to > > fill up all the space given to you. > > > So basically, you need to fit your entire layout into the smallest > > possible size you gave in the desriptor and then size one or more of > > the views to fill up the the extra space, if any. > > > I don't believe it's a generic replacement for a 1x1, 2x2, 3x3 type of > > widget where you actually use different layouts to display more info. > > > On Jun 23, 3:14 am, String <sterling.ud...@googlemail.com> wrote: > > > Following on from my other "resizable appwidgets" post from this morning, > > > this is a cross-post from StackOverflow, where the question has had all > > of 9 > > > views... > > > > I was happy to see support for resizable appwidgets arrive with Android > > 3.1, > > > but I'm stumped on how to make them actually work. > > > > I'm no appwidget novice, and have no problem adding > > > > android:resizeMode="horizontal|vertical" > > > > to my appwidget definition XML. And that works as far as it goes, the > > widget > > > is nominally resizable (long-press on it and handles appear that let me > > drag > > > the border to different sizes). > > > > Two problems, though: > > > > First, it doesn't appear that my code gets called when the widget is > > > resized. A breakpoint set in myonReceive() handler never gets hit, logcat > > > messages I put in never appear, and so forth. > > > > Second, assuming that I can get into my code, I can't see anywhere in the > > > docs to get the current size of the widget. I'm already using calls to > > > AppWidgetProviderInfo.minWidth and .minHeight, but those only reflect the > > > minimum dimensions given in the XML, they don't change at runtime. > > > > So, how is one meant to actually implement a resizable widget? > > > > 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 > > 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 > > -- > Dianne Hackborn > Android framework engineer > 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.- 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