How to put multiple widget sizes in one apk?
|July 31, 2010||Posted by forumadmin under TechQns||
What I’m trying to do is have a clock widget of different sizes (i.e. 2×2, 3×3, 4×4 etc) in one apk and a configuration activity to be able to select which size to add.
From what i’ve learned from documentation:
- Widget size is specified in <appwidget-provider> tag in respective xml file
- Also in that file I set up the configuration activity for that provider
So it seems that size is a property of AppWidgetProvider and I’ll need to somehow create another provider from the code in configuration Activity of the first one…
Or am I getting this wrong and there’s another way?
Is this possible at all?
I’ve been told that some widgets can do this
Thanks in advance!
|Asked By – dpimka||Read Answers|