Skip to content

RushiNChapadia/SuperCart_EcommerceApp

Repository files navigation

🛒 EcommerceApp

A modern and fully functional Android Ecommerce Application built using Java, XML, and Android Studio. The app enables users to browse products, view categories, explore details, and make selections within a clean and responsive UI.

📱 Screenshots Dashboard Categories Product Details Cart

c7b7c85b6a5453097ebf266ad1be258 c201ccc66ca748f5a9edc68b0abc1665 794a4042188e4f0e8a5caf853899904d 4249c51c8dc640f499c1b710c2327024 84360dc70c1447b0a8f5c19b8d3171db 1f719d9c2d6e42ab8900fabcacaabd8b 6173860f03b474b966a6e00104c950f 8bb4bc5306d84c54ba9b4d6e9c641e3d 37cb1d224f5c4de1a0befce5444d2631 666c5f90ca964866baf4a395bb9e1b42 9ca98ac75897491b8e77348535cce633 79bf482d97ba4124a5e725e7d0aab35f 33171da07a944d62a4d2e6f65a181fa4

✨ Features

🧭 Smart Navigation

Tab-based layout for seamless category and product browsing.

Fragment-based structure for modular and scalable design.

🛍️ Product Management

View products by category.

Detailed product view including images, price, and description.

Integrated image carousel using ViewPager2.

📦 Dynamic Data Loading

Backend connected via Retrofit for REST API calls.

Product images and details fetched dynamically from server.

💾 Local Storage

SharedPreferences for saving user preferences.

SQLite / Room (optional) for managing cart or history data.

🌐 Image Loading

Uses Glide for smooth image loading and caching.

⚡ Optimized Performance

Lazy loading, RecyclerView adapters, and efficient view binding.

XML layouts optimized for responsiveness across devices.

🏗️ Project Structure EcommerceApp/ │ ├── app/ │ ├── java/com/example/ecommerceapp/ │ │ ├── activities/ │ │ │ ├── MainActivity.java │ │ │ ├── DashboardActivity.java │ │ │ └── ProductDetailsActivity.java │ │ │ │ │ ├── adapters/ │ │ │ ├── CategoryAdapter.java │ │ │ └── ProductAdapter.java │ │ │ │ │ ├── models/ │ │ │ ├── Category.java │ │ │ ├── Product.java │ │ │ └── User.java │ │ │ │ │ ├── network/ │ │ │ ├── ApiClient.java │ │ │ └── ApiService.java │ │ │ │ │ └── utils/ │ │ └── Constants.java │ │ │ ├── res/ │ │ ├── layout/ │ │ │ ├── activity_main.xml │ │ │ ├── activity_dashboard.xml │ │ │ ├── activity_product_details.xml │ │ │ └── item_product.xml │ │ ├── drawable/ │ │ └── values/ │ └── AndroidManifest.xml │ └── build.gradle

⚙️ Tech Stack Layer Technology Frontend (UI) XML, ViewPager2, RecyclerView, Material Design Backend Communication Retrofit2 (REST API) Image Loading Glide Data Model Java POJOs Architecture MVVM / Activity + Fragment based Build Tool Gradle IDE Android Studio 🔗 API Integration

The app communicates with your backend using RESTful APIs:

@GET("products.php") Call<List> getProducts();

@GET("categories.php") Call<List> getCategories();

API Base URL:

http://10.0.2.2/myshop/

🧩 Key Components Component Purpose DashboardActivity Displays product categories and navigation tabs. ProductAdapter Binds product data using View Binding and RecyclerView. CategoryAdapter Handles category list with view binding. ProductDetailsActivity Shows product details with ViewPager2 image slider. ApiClient / ApiService Handles Retrofit setup and API endpoints. 🚀 How to Run the Project

Clone the repository

git clone https://github.com//EcommerceApp.git

Open in Android Studio

Sync Gradle and install dependencies

Run your local backend (e.g., using XAMPP or WAMP):

Place API files in htdocs/myshop

Use the same base URL in your app

Run the app on Emulator or Physical Device

💡 Future Enhancements

Add authentication (Login / Signup)

Implement Add-to-Cart and Checkout features

Integrate Payment Gateway (e.g., Razorpay / Stripe)

Dark mode and animations for smoother UX

Firebase Push Notifications

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages