Git Product home page Git Product logo

android-booksearch-demo's Introduction

Book Search Demo

Android app that leverages the OpenLibrary API to search books and display cover images. It also allows you to recommend books to friends. See the Book Search Tutorial on our cliffnotes for a step-by-step tutorial.

The app is composed of two screens. The first screen displays a list of books, in which, each book is described by its title, author and cover photo. After a user selects a book from the list, a second screen appears displaying additional details about the book, including the publisher and no. of pages.

Book List

Imgur

Book Details

Imgur

Overview

The app does the following:

  1. Search a list of books using the OpenLibrary Search API
  2. Display the list of books with their cover images and details
  3. Replace ActionBar with Toolbar
  4. Use SearchView to search for books with a title
  5. Show ProgressBar before each network request
  6. Add a detail view to display more information about the selected book from the list
  7. Use a share intent to recommend a book to friends

To achieve this, there are five different components in this app:

  1. BookClient - Responsible for executing the API requests and retrieving the JSON
  2. Book - Model object responsible for encapsulating the attributes for each individual book
  3. BookAdapter - Responsible for mapping each Book to a particular view layout
  4. BookListActivity - Responsible for fetching and deserializing the data, configuring the adapter and providing a search interface
  5. BookDetailActivity - Responsible for providing book detail view and share intent.

See the Book Search Tutorial on our cliffnotes for a step-by-step tutorial.

Libraries

This app leverages two third-party libraries:

android-booksearch-demo's People

Contributors

nidhi1608 avatar nesquena avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.