Re: [android-developers] Re: Widget Layout Frustration

2012-10-01 Thread Fred Jones
As far as you know are all the manufacturer launchers based on the AOSP Launcher2? On Saturday, September 29, 2012 5:39:15 PM UTC-4, Kostya Vasilyev wrote: This can be difficult considering that: - 2.3 pushed home screen icons down relative to widgets (or was it the other way around?),

Re: [android-developers] Re: Widget Layout Frustration

2012-10-01 Thread Kostya Vasilyev
How would I know? But I do remember something from past discussions on this list about Samsung's TouchWiz ignoring view animations in widgets that all(?) the other launchers respect. So that's one difference already. Also, like I said, HTC's launcher in 2.3 positions widgets relative to app

[android-developers] Re: Widget Layout Frustration

2012-09-29 Thread Fred Jones
I'm having this exact problem.. was anyone ever able to come up with a way of doing this that is consistent across different home screens? It seems like the tCalendar app does it perfectly. Thanks. On Friday, October 30, 2009 12:40:59 AM UTC-4, Evan Ruff wrote: Hey Guys, I was hoping

Re: [android-developers] Re: Widget Layout Frustration

2012-09-29 Thread Kostya Vasilyev
This can be difficult considering that: - 2.3 pushed home screen icons down relative to widgets (or was it the other way around?), except HTC devices, where 2.3 has a lot of 2.1-2.2 elements... - 4.0 and 4.1 surrounds widgets with additional padding (when it remembers to, and its memory is not

Re: [android-developers] Re: Widget Layout Frustration

2009-11-11 Thread for android
i was referring to the INSTALL_SHORTCUT in the launcher application with action com.android.launcher.action.INSTALL_SHORTCUT which refers to the Launcher application.Is there any common Intent for that? On Thu, Nov 5, 2009 at 9:09 PM, Romain Guy romain...@google.com wrote: Is there any

[android-developers] Re: Widget Layout Frustration

2009-11-11 Thread Matt Kanninen
When I'm 2px off I find negative layout margins help immensely. http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html On Oct 29, 8:40 pm, Evan Ruff evan.r...@gmail.com wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to

Re: [android-developers] Re: Widget Layout Frustration

2009-11-11 Thread Evan Ruff
Great tip Matt! Thanks for sharing! E On Wed, Nov 11, 2009 at 9:34 AM, Matt Kanninen mathias...@gmail.com wrote: When I'm 2px off I find negative layout margins help immensely. http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html On Oct 29, 8:40 pm, Evan

Re: [android-developers] Re: Widget Layout Frustration

2009-11-11 Thread Romain Guy
That's the common Intent. On Wed, Nov 11, 2009 at 1:22 AM, for android forandr...@gmail.com wrote: i was referring to the INSTALL_SHORTCUT in the launcher application with action com.android.launcher.action.INSTALL_SHORTCUT which refers to the Launcher application.Is there any common Intent

Re: [android-developers] Re: Widget Layout Frustration

2009-11-11 Thread Guru
thanks Romain. On Wed, Nov 11, 2009 at 9:49 PM, Romain Guy romain...@google.com wrote: That's the common Intent. On Wed, Nov 11, 2009 at 1:22 AM, for android forandr...@gmail.com wrote: i was referring to the INSTALL_SHORTCUT in the launcher application with action

Re: [android-developers] Re: Widget Layout Frustration

2009-11-11 Thread for android
Oh ok.I was under the assumption that only the launcher application understands that Intent. On Wed, Nov 11, 2009 at 9:49 PM, Romain Guy romain...@google.com wrote: That's the common Intent. On Wed, Nov 11, 2009 at 1:22 AM, for android forandr...@gmail.com wrote: i was referring to the

[android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Susan
Evan, You may find this post helpful as well. Not exactly right, but closer than what I have... http://www.anddev.org/viewtopic.php?p=28996#28996 On Nov 3, 11:39 pm, Susan ska...@gmail.com wrote: Evan, I am also struggling with this same problem. It's mystifying because so many widgets seem

[android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Evan Ruff
Susan, I've tweaked it a little bit more and here is where I'm at: http://i243.photobucket.com/albums/ff2/gte619n/widgetLayout.png Pixel for Pixel, the text is exactly the same. The location within the bounding box is the same, as is the distance between the text and the graphic. In order to do

Re: [android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Romain Guy
Note that Home uses a custom view derived from TextView to create this effect. Also, if you want your widget to look like a shortcut, why provide a widget in the first place? It's very easy for applications to offer shortcuts and let Home take care of how it looks (what will happen to your widget

[android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Evan Ruff
RG, My widget manages the state of a Service running in the background. As you click the widget it starts/stops/pauses/etc the service. I want it to look like a Shortcut so that it fits into the Home Screen seamlessly. Additionally, the icon and text change depending on the state of the service.

Re: [android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Romain Guy
You cannot change the text or icon of a shortcut. Just don't make your widget look like a shortcut. There's no reason to make it look like a shortcut if it's a widget. It's just misleading. On Wed, Nov 4, 2009 at 2:05 PM, Evan Ruff evan.r...@gmail.com wrote: RG, My widget manages the state of

[android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Evan Ruff
I hope it doesn't sounds like I'm being argumentative, but, I mean, REALLY? That's like saying We reserve the right to an Icon with Text on the home screen. FWIW, some of my favorite home screen widgets are the Bluetooth Toggle guy and the Calendar tCalendar widget. They do EXACTLY what they say

Re: [android-developers] Re: Widget Layout Frustration

2009-11-04 Thread Romain Guy
No, that's not what I mean. I mean that shortcuts should look like shortcuts and widgets like widgets. Just don't expect your code to keep matching Home across devices, themes, versions, etc. They do EXACTLY what they say and don't take up any more than the minimum space; You don't have to

[android-developers] Re: Widget Layout Frustration

2009-11-03 Thread Susan
Evan, I am also struggling with this same problem. It's mystifying because so many widgets seem to have this look and yet I find it hard to believe that all the developers painstakingly did it by hand. Can you post a screenshot of what you have? In what way is yours just a couple of pixels off?