开发者

Vertical Scroller animation

开发者 https://www.devze.com 2023-04-04 09:09 出处:网络
Is possible to do a vertical scroller animation in Android without using javascript? Anybody knows a 开发者_开发技巧tutorial o a web page with a helpful code? thanksI\'m not sure of what you mean by v

Is possible to do a vertical scroller animation in Android without using javascript? Anybody knows a 开发者_开发技巧tutorial o a web page with a helpful code? thanks


I'm not sure of what you mean by vertical animation but I think this tutorial can help you.

Animations of views are based on Interpolators that you can set, and one of them is the LinearInterpolator which is detailed here.

EDIT, further to the comments below:

This is something you can do with the scrolling and animation features of the View class, as described here (ctrl-f "Scrolling" and "Animation" in that page).

Should the API level you are using be too low, this is also something you can do with a Thread that modified the position of the TextView embedded in your layout or that uses the scrollXX() functions. This is also described in the page linked above.


Have you looked at the viewflipper control.

I've tried this in the past and it works well. You can also use ViewAnimator class

UPDATE

The google documentation is a bit hard to chew through. You may wish to try this simple tutorial first.

0

精彩评论

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

关注公众号