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 ImageView

As shown on the previous screenshot, our app has an image 0 that fills the entire screen and to achieve that let's add an ImageView to the first row of the TableLayout. Use the no0 image in the drawable folder as the initial image (zero is the first number to be displayed). Adjust the width and height of the ImageView to populate the screen.

Adding ImageView

Adding an ImageView to the app screen

Distribute weight (specifies how much of the extra space in the layout to be allocated to the View) evenly to center the widget. Use the button shown in the following screenshot to adjust the ImageView to the center of the screen. Do this while the ImageView ...

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