1

According to the documentation it should be possible to configure the size of an App Widget using a configuration activity http://developer.android.com/guide/topics/appwidgets/index.html#Configuring

If you would like the user to configure settings when he or she adds a new App Widget, you can create an App Widget configuration Activity. This Activity will be automatically launched by the App Widget host and allows the user to configure available settings for the App Widget at create-time, such as the App Widget color, size, update period or other functionality settings.

I can't find any examples on how to do this, has anyone got any ideas?

Thanks!

Ash

Ash McConnell
  • 1,340
  • 1
  • 17
  • 28

1 Answers1

1

I think this may not be possible at the moment to do exactly what you want.

I think the solution is 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.

For an example of a working manifest file with multiple providers see:

Community
  • 1
  • 1
Justin Shield
  • 2,390
  • 16
  • 12