How to make a scrollable app widget?

后端 未结 4 1826
青春惊慌失措
青春惊慌失措 2020-12-18 09:05

As far as I have read in the Internet and official documentation, it isn\'t possible to make a scrollable app widget. Also all my tries failed. I even tried to subclass Text

相关标签:
4条回答
  • 2020-12-18 09:41

    As far as I have observed, app widgets are scrollable, but only in the vertical direction. For Eg. The calendar widget is a scrollable widget which comes with mostly all android phones.

    Only the vertical scrolling is allowed for the fact that horizontal scrollings are required to change the screens in the home page.

    It is said only 2 gestures are allowed for a widget, 1.Touch 2.Vertical scrolling.

    Source : Developer's Page

    0 讨论(0)
  • 2020-12-18 09:49

    Now you can make a scrollable widget, but you'll have the problems with images within it. Workaround is described here.

    0 讨论(0)
  • 2020-12-18 10:00

    HTC provides scrollable app widgets because these are built-in. Only their Launcher can create and display them. Regular app widgets do not support scrolling.

    0 讨论(0)
  • 2020-12-18 10:07

    Are there any ways to achieve that?

    Not directly. You can always add buttons to rotate you through various options. But true scrolling is not possible.

    0 讨论(0)
提交回复
热议问题