/GridImageSearch

CodePath grid image search example

Primary LanguageJava

GridImageSearch

This is an Android demo application for using the Google image search API and viewing the results in an infinite scrolling grid view.

Time spent: 5 hours spent in total

Completed user stories:

  • User can enter a search query that will display a grid of image results from the Google Image API.
  • User can click on "settings" which allows selection of advanced search options to filter results
  • User can configure advanced search filters such as: Size (small, medium, large, extra-large) Color filter (black, blue, brown, gray, green, etc...) Type (faces, photo, clip art, line art) Site (espn.com)
  • User can tap on any image in results to see the image full-screen
  • User can scroll down “infinitely” to continue loading more image results (up to 8 pages)

User story I didn't agree with: :P

  • Subsequent searches will have any filters applied to the search results This would be trivial. I would just keep concatinating the url. But I actually didn't want to do that.

Notes: There are a few fixes needed:

  • Typing return in the search query text field crashes the app.
  • It would be better to show a spinner in the image view while the image loads. Right now it just pops in.
  • And when the grid view item is being reused, I should clear the image right away, right now it switches from the old image to the new one.
  • The spinner widths are kinda whack. I need to figure out how to fix them.

Walkthrough of all user stories:

Video Walkthrough