Start simple Animation top to bottom from a specific position
Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I need to make a textview that perform an animation from top to bottom and the animation start with the y value 50. How to do it? Thanks in advance. | |||
You can use TranslateAnimation. TranslateAnimation uses deltas, so to calculate the position of 50px from the top of the screen, subtract the top of the view & add 50. In this example, I set the toY by adding some value to the fromY. Here's the code:
Hope this helps :) | |||
default
Read more
stackoverflow.comm
No comments:
Post a Comment