Skip to content

Releases: david-read-iii/Clothes-Catalog

Initial release

23 Oct 03:44
824ecbd
Compare
Choose a tag to compare

Changelog

  • Create ProductProvider that is a ContentProvider for managing an SQLite database of product entries. Each product has a name, price, quantity, supplier, supplier phone number, supplier email, and picture.
  • Create InventoryActivity that presents a list of products. Each list item displays the product's name, price, quantity, and a sale button to decrement the product's quantity by 1. Options to add a dummy product entry and delete all product entries are available in the action bar. An add product button allows you to navigate to DetailActivity to create a new product. Clicking on a list item navigates you to DetailActivity to modify the existing product.
  • Create DetailActivity that presents a form for adding a new product or modifying an existing product. Text fields for entering the product's name, price, quantity, supplier info are available. If a text field contains an invalid value, an error is set on the field and saving is disabled. Change quantity buttons allow easy modification of the quantity value. The call supplier button starts an intent to the phone app. The email supplier button starts an intent to the email app. The change photo button presents options to take a new photo, choose an existing photo, or remove the photo for the product picture. The save product button saves the product with the chosen values and sends the user back to InventoryActivity.

Screenshots

  • Screenshot_20221015_222249
  • Screenshot_20221015_222309
  • Screenshot_20221015_222327
  • Screenshot_20221015_222339
  • Screenshot_20221015_222351
  • Screenshot_20221015_222357
  • Screenshot_20221015_222431
  • Screenshot_20221015_222456
  • Screenshot_20221015_222502
  • Screenshot_20221015_222720
  • Screenshot_20221015_223511
  • Screenshot_20221015_223521

DetailActivity supplier contact info enhancement. Display supplier contact info in DetailActivity fields and add buttons to call/email the supplier.

12 Oct 01:32
94c3b83
Compare
Choose a tag to compare

Changelog

  • Modify DetailActivity layout to show supplier contact info and buttons.
  • Persist supplier contact info through taps onto and off of DetailActivity.
  • Have Call Supplier button in DetailActivity dial the phone number with the device's phone app in the Supplier Phone Number field on click.
  • Have Email Supplier button in DetailActivity draft an email with the device's email app on click.

Screenshots

  • Screenshot_20221011_212840
  • Screenshot_20221011_212847
  • Screenshot_20221011_212901

DetailActivity Picture Enhancement. Display sample/live picture in DetailActivity, provide picture modification options, and more.

09 Oct 02:53
e734b4c
Compare
Choose a tag to compare

Changelog

  • Modify DetailActivity layout to show an ImageView of the product's picture.
  • Show a sample image when a product has no picture. Display the stored picture otherwise.
  • Provide a dialog of photo modification options in DetailActivity.
  • Use Activity Result APIs to easily handle intents to take a picture with the device's camera and choose a picture from the device's storage.

Screenshots

  • Screenshot_20221008_224010
  • Screenshot_20221008_224023
  • Screenshot_20221008_224043
  • Screenshot_20221008_224156

Initial DetailActivity. Display product properties in text fields, add buttons to modify quantity/save product/delete product, and more.

18 Sep 06:17
8bb210c
Compare
Choose a tag to compare

Changelog

  • Add DetailActivity that is a user interface for creating or modifying a product in the ProductProvider. It launches in add product mode when started from the add product button in InventoryActivity and launches in update product mode when started from clicking an item in InventoryActivity.
  • Add text fields in DetailActivity that displays a field error when invalid text is entered.
  • Add save product button to DetailActivity.
  • Add increment and decrement quantity buttons to DetailActivity.
  • Replace increment and decrement quantity buttons in InventoryActivity with a sale button.
  • Add delete product action bar option to DetailActivity.
  • Refactor ProductCursorAdapter.java to accept lambdas for click handling instead of using the traditional interface approach.
  • Show confirmation dialogs before deleting products in InventoryActivity and DetailActivity.

Screenshots

  • Screenshot_20220918_020801
  • Screenshot_20220918_020854
  • Screenshot_20220918_020918
  • Screenshot_20220918_020925
  • Screenshot_20220918_020934
  • Screenshot_20220918_020945
  • Screenshot_20220918_020953
  • Screenshot_20220918_021001
  • Screenshot_20220918_021008

Enhancements to InventoryActivity. Display data in RecyclerView, put add product FloatingActionButton in layout, and more.

11 Sep 16:50
54caa52
Compare
Choose a tag to compare

Changelog

  • Display ProductProvider data in a RecyclerView in InventoryActivity.
  • Get ProductProvider data using a CursorLoader in InventoryActivity.
  • Show empty list text when no data is available in InventoryActivity.
  • Add static click handler for RecyclerView list items.
  • Add increment and decrement quantity buttons in InventoryActivity.
  • Put static add product FloatingActionButton in InventoryActivity.
  • Use Snackbars to deliver alerts instead of Toasts.
  • Refactor ProductCursorAdapter.java to use stable ids.

Screenshots

  • Screenshot_20220911_124348
  • Screenshot_20220911_124407
  • Screenshot_20220911_124428
  • Screenshot_20220911_124452
  • Screenshot_20220911_124519

Create Products Provider and barebones Inventory Activity

05 Sep 03:00
526ffa0
Compare
Choose a tag to compare

Changelog

  • Initially configure the app with default colors, styles, and a launcher icon.
  • Define a ContentProvider for storing product data. Use a SQLiteOpenHelper subclass to facilitate the actual CRUD operations of the data.
  • Define a barebones InventoryActivity that depicts the data of the ProductProvider in a single TextView. Also give options to add dummy data or delete all data from it.

Screenshots

  • Screenshot_20220904_223604
  • Screenshot_20220904_224218