Time for action - animating a news feed
We'll start off by creating a selector
Activity and a simple
NewsFeedActivity. In a news feed, we'll animate the latest headlines "in and out" using a timer. For this example we'll be working with some of the default animations provided by Android and driving the process mainly through the layout resources.
- Create a new project to contain the animation examples from this chapter, with a main
android create project -n AnimationExamples -p AnimationExamples -k com.packtpub.animations -a AnimationSelector -t 3
- Open the
res/layout/main.xmllayout file in an editor or IDE.
- Clear out the default content of the layout resource.
- Declare a vertical
LinearLayoutconsuming all ...