How to make a scrollable app widget?

寵の児 提交于 2019-11-29 08:07:20

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.

Romain Guy

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.

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!