[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-10-19 Thread Robert
This is something I really can't understand. Why can't the android engineers give us a way to create custom views for appwidgets? Diane Hackborn argues not to abuse them and yet why does she care? After all it's up to the user to decide if the impact on the experience is worth it or not. If they do

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
On Thursday, August 25, 2011 6:41:33 PM UTC+1, Dianne Hackborn wrote: But please please please -- don't abuse widgets by consuming lots of > resources with them, this has a direct impact on the overall experience. > Yeah, I hear you, honestly I do. It's a situation, though, where users complain

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Dianne Hackborn
That said, you could probably get around this with a content provider. But please please please -- don't abuse widgets by consuming lots of resources with them, this has a direct impact on the overall experience. On Thu, Aug 25, 2011 at 10:40 AM, Dianne Hackborn wrote: > I am continually glad fo

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Dianne Hackborn
I am continually glad for this limitation. Shoving over a MB of memory that the launcher needs to keep in its process for a widget is not desirable. Sorry. On Thu, Aug 25, 2011 at 9:39 AM, Mark Murphy wrote: > On Thu, Aug 25, 2011 at 11:11 AM, String > wrote: > > The funny thing is, that doesn

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 11:11 AM, String wrote: > The funny thing is, that doesn't actually help. The FAILED BINDER > TRANSACTION seems to occur whenever you send too much data through IPC > (where "too much" is on the order of 1MB), but it doesn't seem to matter if > that 1MB is in a single trans

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
On Thursday, August 25, 2011 3:38:33 PM UTC+1, Mark Murphy (a Commons Guy) wrote: > > > Anyway, what I was saying was that 360px square was as large as I could > go > > before running into the dreaded "!!! FAILED BINDER TRANSACTION !!!" bug. > I'd > > really hoped that would be fixed by now, but

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 7:42 AM, String wrote: > If your give the root of your appwidget's layout a width & height of > match_parent, then it will expand to fill all available space that the OS > gives it as the user resizes. Seems obvious in retrospect, but none of us > mentioned it the first tim

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Posted too soon, argh. Anyway, what I was saying was that 360px square was as large as I could go before running into the dreaded "!!! FAILED BINDER TRANSACTION !!!" bug. I'd really hoped that would be fixed by now, but apparently not. I'd also like to say that the resizable widget support coul

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Now that I've come back to it after some time has passed, I've found a partial solution to this issue, one that I'm surprised none of us thought of before. If your give the root of your appwidget's layout a width & height of match_parent, then it will expand to fill all available space that the

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Um, that was in my original post? https://groups.google.com/d/msg/android-developers/oAl2Ix9erSY/tGvvqqbf9soJ -- 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 unsu

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread a a
HI String, add the following red attribute http://schemas.android.com/apk/res/android"; android:minWidth="294dip" android:minHeight="220dip" android:initialLayout="@layout/abc_layout" android:updatePeriodMillis="8640" *android:resizeMode="horizontal|vertical"* /> 2011/6/24

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-24 Thread Kostya Vasilyev
This seems to be a design constrant, with the idea of keeping AppWidgetProvider processes in memory as little as possible. I can see this being useful for regular widget rendering, but loading the process for the one current widget the user is interacting with doesn't seem too bad. Besides, this c

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-24 Thread String
On Thursday, June 23, 2011 4:45:40 PM UTC+1, TreKing wrote: > > On Thu, Jun 23, 2011 at 3:44 AM, String wrote: > >> "1* Would be 5* if the widgets were expandable, rather than cluttering up >> my widget picker with 8 different sizes." > > > Can't you disable Widgets such that they don't show up i

[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Ed
Ahh yeah - forgot about our friend RemoteView :( On Jun 24, 9:05 am, Mark Murphy wrote: > On Thu, Jun 23, 2011 at 6:28 PM, Ed wrote: > > Can you have a custom view inside the widget that is fill_parent and > > do what you need to do in the onDraw? > > No. You cannot have custom Views in app widg

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Mark Murphy
On Thu, Jun 23, 2011 at 6:28 PM, Ed wrote: > Can you have a custom view inside the widget that is fill_parent and > do what you need to do in the onDraw? No. You cannot have custom Views in app widgets, period. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Ed
Can you have a custom view inside the widget that is fill_parent and do what you need to do in the onDraw? Not sure on how often onDraw would get called in a widget on a 3.1 homescreen but I imagine you'll want to be careful about the efficiency of the code or at least run some benchmarks to see h

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread String
Tiles in a GridView might well work if you could solve the column count problem, but d@mn, that'd be a big rewrite of my widgets. Possibly the best option under the circumstances, though. String -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread TreKing
On Thu, Jun 23, 2011 at 3:44 AM, String wrote: > "1* Would be 5* if the widgets were expandable, rather than cluttering up > my widget picker with 8 different sizes." Can't you disable Widgets such that they don't show up in the Widget Picker? ---

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread Mark Murphy
On Thu, Jun 23, 2011 at 4:44 AM, String wrote: > My widgets in question are all based around a single (if composited) image > which does "intrinsically have an expandable amount of content." A > reasonable analogy would be Honeycomb's Picture Frame widget: not > list-based, but it could easily be

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-23 Thread String
I was afraid of that. My widgets in question are all based around a single (if composited) image which does "intrinsically have an expandable amount of content." A reasonable analogy would be Honeycomb's Picture Frame widget: not list-based, but it could easily be expandable, it would just need

[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-22 Thread Zsolt Vasvari
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 wrote: > Yes this is for widgets whose layouts can resize.  Specifically, it is for > things like the new

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-22 Thread Dianne Hackborn
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 wrote: > While I don't know the answer. I think resizable widgets are

[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-06-22 Thread Zsolt Vasvari
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