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