O'Reilly logo

Learning Android Canvas by Mir Nauman Tahir

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

Using a NinePatch image

We will start by opening Eclipse and starting a new Android Project. We will name our project as MyFirst9PatchApp.

The following screenshot shows the new app's configuration settings:

Using a NinePatch image

In the next step of the wizard we will provide our base PNG file as the icon for our application.

The following screenshot shows the icon configuration screen:

Using a NinePatch image

In the next step we will name our main activity as MyFirst9PatchAppMainActivity. The following screenshot shows the main activity configuration screen:

We will click on Finish, which completes ...

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