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

Assigning the widget's ID

There are basically one ImageView and three ImageButtons. To change the ImageView ID, select it and go to the widget properties on the right-side. Click on the three dots button on the Id attribute. Change the ID of the ImageView to imagenumber, as shown in the following screenshot:

Assigning the widget's ID

Changing the widget's ID through the Property window

After that, change all the IDs of all the buttons to btnprevious, btninfo, btnsound, and btnnext. Use the following table as a guide:

Widget

ID

ImageView

imagenumber

Left most button

btnprevious

Display app info

btninfo

Play sound button

btnsound

Right most button

btnnext

Finally, ...

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