Home > Articles > Mobile Application Development & Programming

  • Print
  • + Share This
This chapter is from the book


For this exercise, use your own images or images that you find on the web. Create an Activity that includes two ImageViews. The first ImageView will take up the whole screen, with width and height set to match_parent. The second ImageView will have a fixed size. It will be smaller than the first ImageView and will appear over the first ImageView aligned on the bottom of the first ImageView. The goal is to use scaleTypes to display one image full size in the large view and to create a good thumbnail image in the smaller view. This exercise is an opportunity to experiment with displaying modified images. Try making the smaller image a set square size and use CENTER_CROP for the scaleType.

  • + Share This
  • 🔖 Save To Your Account