Welcome to the Shopping Cart Android App repository! This project is a simple Android application designed to manage a shopping list. The main objective of this app is to provide a user-friendly interface for adding, viewing, and managing products in a shopping list.
- Add Product: Users can add products with details such as name, price, and quantity.
- View Products: A list of added products is displayed, showing their details.
- Edit Product: Users can update the details of an existing product.
- Delete Product: Users can remove a product from the shopping list.
- Android Studio
- An Android device or emulator running Android API level 21 or higher
- Basic knowledge of Android development and Java
-
Clone the repository:
git clone https://github.com/yourusername/shopping-cart-android-app.git
-
Open the project:
- Launch Android Studio.
- Select
Open an existing Android Studio project. - Navigate to the cloned repository and select it.
-
Build the project:
- Let Android Studio download the necessary dependencies and build the project.
-
Run the app:
- Connect an Android device or start an emulator.
- Click on the
Runbutton in Android Studio to install and start the app on the device/emulator.
The project follows the typical Android project structure with some specific components:
-
app/src/main/java/com/yourusername/shoppingcart/:activities/: Contains all the activities, includingMainActivityandAddProductActivity.models/: Contains theProductclass, representing the product entity.adapters/: Contains the adapter class for managing the product list display.database/: Contains classes for managing the local database operations usingRoom.
-
app/src/main/res/layout/: Contains all the XML layouts for the activities and list items.
- Click on the
Add Productbutton in the main activity. - Enter the product name, price, and quantity.
- Click
Saveto add the product to the list.
- The main activity displays a list of added products with their details.
- Click on a product in the list to open the edit screen.
- Update the product details and click
Save.
- Swipe left or right on a product in the list to delete it.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes.
- Commit your changes:
git commit -m "Add your commit message" - Push to the branch:
git push origin feature/your-feature-name
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or need further assistance, please contact:
- Claudio Coutinho - ccoutinho.ti@gmail.com
Thank you for using the Shopping Cart Android App!