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.

  1. Create a new project to contain the animation examples from this chapter, with a main Activity named AnimationSelectionActivity:
    android create project -n AnimationExamples -p AnimationExamples -k com.packtpub.animations -a AnimationSelector -t 3
  2. Open the res/layout/main.xml layout file in an editor or IDE.
  3. Clear out the default content of the layout resource.
  4. Declare a vertical LinearLayout consuming all ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.