Building a TabActivity

In order to continue, we need our Activity class to set up the three tab content elements we declared in our main.xml file as tabs. By preference, all tabs in Android should have an icon.

The following is a screenshot of the tabs without their icons:

Building a TabActivity

The following is a screenshot of the tabs with the icons:

Building a TabActivity

Creating tab icons

Android applications have a specific look and feel defined by the default widgets provided by the system. In order to keep all applications consistent for users, there are a set of user interface guidelines ...

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.