Code Monkey home page Code Monkey logo

bookinventory's Introduction

Book Inventory

An inventory app for a library or bookstore.

Screenshot

  • Built for API 15 or higher
  • Two activities: CatalogActivity and EditActivity
  • Uses SQLite to store data

Basic structure:

Empty state is displayed upon startup, telling the user to add books.

The user can click the floating action button to open the EditActivity.

EditText fields take input for name, author, price, quantity, supplier name, and supplier phone number.

Input is added to the RecyclerView in the CatalogActivity.

Contract and SQLiteOpenHelper files provide the schema and methods containing SQL statements.

Additions for Stage 2 project:

A Sale button for each RecyclerView item to decrease the quantity by 1.

ExpandableLayout, when clicked, displays the details of an item, as well as the Order, Edit and Delete buttons.

Order button sends an implicit intent to the phone app.

Quantity buttons (-/+) are added to EditActivity only when editing an existing item.

Dialog messages display whenever the user wants to delete or discard an item.

References:

https://developer.android.com/training/data-storage/sqlite

ExpandableLayout: https://github.com/SilenceDut/ExpandableLayout

Material icons: https://material.io/tools/icons/?style=baseline

bookinventory's People

Contributors

dizzy-miss-lizzy avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

samux87

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.