Exercise Thursday

Goal: Your goal for today is to practice using ListViews and ArrayAdapters to display lists of data in addition to using the View.OnClickListener interface to manage your click listeners.

Code


Local Business App

Create an app for a business of your choosing. Make sure to style your app to reflect the business using its logo and branded colors. Research how to change the launcher icon and change it to the company's logo. Use ListViews and ArrayAdapters to display information somewhere in your app. Implement tests throughout the course of development.

Further Exploration

When adding photos, make sure to scale them down as much as possible. If you experience any outOfMemory errors, try implementing the Picasso library to resize images at runtime. Click here to install Picasso and then follow along with this guide to learn the best ways to employ Picasso.

Peer Code Review


  • Does the application include tests? Do they pass?
  • Are ListViews being utilized correctly?
  • Have ArrayAdapters been integrated into the project?
  • Are click listeners managed correctly?
  • Is the code well-refactored and easy to follow?
  • Is the code indented correctly throughout?