O'Reilly logo

Android 3.0 Animations by Alex Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—let's draw views

For this example, we will create our own TextView class and breakpoint into it. Fortunately, for us, we will be able to base it on the android.view.TextView class, so the amount of code we need to write is minimal.

  1. Create a new Android project in Eclipse. I will describe this particular example in Eclipse, because it provides easy access to the Java debugger. However, you can substitute your preferred development tool, if you are comfortable with using breakpoints in it.
  2. On the New Android Project page, enter the following settings and hit the Finish button:
    • Project Name:ViewExample
    • Build Target:Android 3.0
    • Package Name:com.packt.animation.viewexample
    • Create Activity:ViewExample
  3. Create a new class in the com.packt.animation.viewexample ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required