O'Reilly logo

Android Development Tools for Eclipse by Sanjay Shah, Khirulnizam Abd Rahman

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

Adding ImageButtons

The second row in TableLayout is for the navigation buttons (previous and next) and the play sound button. ImageButton is more attractive for this kind of app. When you create an ImageButton, you will be asked to choose the image. For the first button use the image prev from the drawables. The second is sound and the last one is next. These buttons need to be added one at a time, as shown in the following screenshot:

Adding ImageButtons

Adding ImageButtons

Activate (select) one of the buttons and distribute evenly, as shown in the following screenshot. This is to make sure all the buttons are spread evenly across the screen's width.

Distribute weight ...

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