From which version of Android api can I develop a scrollable app widget?
-
13-11-2019 - |
Pergunta
I like the scrollable Calendar App Widget (see picture), and I want to develop a similar scrollable widget for my application. But I'm not sure from which version of Android api (or platform) can I develop a scrollable app widget? Any ideas? Thank you so much!
Solução
I am bluffed as I remember that ui controls (a.k.a widgets outside of the android world) were limited to a small number of classes (textview, imageview, and some others).
But the android widget guide seems to have been updated and you can now use quite a lot of classes including listviews. So I guess you can really develop a scrollable widget for android using this class without problems now.
Could someone confirm that there has been an update ?
---update --- The method setScrollPosition is available in the class RemoteViews only from android version 11.