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 Interpolator
s 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.
精彩评论