Yes, that is correct.

A config utility can be used to pick the type of content, although it's optional. Different widget sizes require separate widget declarations, each with its own size.

For the OP's project, it seems like different sizes are tired to different content types.

So I meant the same thing, but didn't word it quite well. Thanks for clarifying.

-- Kostya

10.08.2010 11:39, YuviDroid пишет:
Actually, if I'm not wrong, you need to create separate providers just for the different sizes (4x1, 3x1, 4x2, etc.), but the content displayed is up to the developer. After selecting the widget (size) a Configuration Activity can be shown where the user can then select what content he wants.


YuviDroid

On Tue, Aug 10, 2010 at 9:08 AM, Kostya Vasilyev <kmans...@gmail.com <mailto:kmans...@gmail.com>> wrote:

    Like Mark already said, you need to create a separate
    widget_info.xml file for each size/content type, with appropriate
    attributes for minWidth and minHeight.

    Essentially, this means declaring separate widgets for all size /
    content options. The user would see them all when choosing a
    widget to add to the home screen.

    -- Kostya

    10.08.2010 10:47, kaundinya пишет:

        Hi,
        How can i give an option for the user to select 3 options(news
        only,
        weather only, News and weather) in the dialog on load of the
        widget?


        On Aug 10, 3:23 am, mboehmer<mboeh...@fh-muenster.de
        <mailto:mboeh...@fh-muenster.de>>  wrote:

            How is this done for the News and Weather widget? After
            selecting it a
            dialog opens and asks for which content (i.e. size) the
            user wants to
            have.

            On 10 Aug., 00:04, Mark Murphy<mmur...@commonsware.com
            <mailto:mmur...@commonsware.com>>  wrote:




                Have two<provider>  elements with two separate
                metadata files with the
                two sizes, presumably.


                On Mon, Aug 9, 2010 at 5:30 PM, Fernando
                T<s...@trias.org <mailto:s...@trias.org>>  wrote:

                    I'm looking at creating an AppWidget and want to
                    have the user select
                    which size they want before adding it. Thus, the
                    user can choose 1x1,
                    2x2, etc. The Calendar widget in Android 2.2 (and
                    possibly earlier,
                    but not in 1.6) does this. How is this done?


                --
                Mark Murphy (a Commons
                
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
                
<http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy>


                _The Busy Coder's Guide to *Advanced* Android
                Development_ Version 1.9
                Available!




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




--
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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