开发者

How to make a scrollable app widget?

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 TextView to implement my own scroll method, but nothing worked.

Are there any ways to achieve that?

Btw.... there are solutions if you use for example htc sense or home desktop开发者_如何学Python ++, but i want to make it available to other users which don't use this


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜