This is a sample application built using Android and Jetpack Compose. It demonstrates a basic implementation of a cart with a remove item feature, and it also integrates a custom alert dialog to confirm actions.
- Cart View: Displays items in a cart.
- Remove Item: Allows users to remove an item from the cart with a confirmation dialog.
- Cart Icon: A cart icon is included for better UI.
Ensure you have the following tools installed:
- Android Studio
- JDK (Java Development Kit)
- Android SDK
-
Clone this repository to your local machine.
git clone https://github.com/ashishhgour/custom_alert_sample_app.git
-
Open the project in Android Studio.
-
Build and run the application on an emulator or physical device.
- Remove Item: When you click on the "Remove from Cart" button, a custom confirmation dialog will appear asking if you want to remove the item from the cart.
- Action Feedback: After clicking "Remove", the action feedback will appear briefly on the screen.