https://github.com/paulcoding810/goldenowl-intern-project
Intern Webdev Project - GShoes
https://github.com/paulcoding810/goldenowl-intern-project
Last synced: 3 months ago
JSON representation
Intern Webdev Project - GShoes
- Host: GitHub
- URL: https://github.com/paulcoding810/goldenowl-intern-project
- Owner: paulcoding810
- Created: 2022-04-25T15:26:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T03:11:25.000Z (about 3 years ago)
- Last Synced: 2025-01-01T12:22:02.508Z (5 months ago)
- Language: Java
- Size: 20.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# GoldenOwlAsia
## webdev-intern-assignment
GShoes project on Android.
![]()
## Environment
- IntelliJ IDEA 2022.1 (Community Edition)
- Android 11## Dependencies
- com.aurelhubert:ahbottomnavigation:2.3.4
- com.squareup.picasso:picasso:2.71828## Project Hierarchy
![]()
## How it work?
- This project uses **PageViewer** to display 2 Fragment in slides: _ShopFragment_ and _CartFragment_
- **ViewModel** is used to communicate between 2 Fragment, which holds 2 properties:
ShopRepo , CartRepo.
- ShopRepo manages adding a product to cart. When a product deleted in cart, ShopRepo re-enable that product so it can be added to cart again.
- CartRepo manages how to add, remove, delete a product in ListCartProduct. It also auto re-calculate the total price when any change applied.
- Use **SharedPreferences** to save and load user data.
- Use **RecyclerView** to display the products lists.
- Use **Picasso** to fetch the images, it is cache-suported which is suitable for RecyclerView.
- Add the **bottomNavigation** feature to display the current Fragment and the number of products in cart.## Todo
- Animation: add product to cart, remove item from cart.
- Image drop shadow.