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.
- 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.
- On the New Android Project page, enter the following settings and hit the Finish button:
- Project Name:
- Build Target:
- Package Name:
- Create Activity:
- Create a new class in the