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/AppWidgetProviderInfo.html#minHeight

    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

--
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

Reply via email to