Code Monkey home page Code Monkey logo

e_commerce's People

Contributors

200-0k avatar adel66777 avatar sulimank88 avatar yas962 avatar

Watchers

 avatar

e_commerce's Issues

Product Screen - XML only

Product Screen

الي بيسويها يسويها بالطريقة الي تعجبه بس اشوف انها افضل تكون بالطريقة هذي:

ConstraintLayout
├── LinearLayout (Vertical) <-- Constraint: 0-Top, Left-0, Right-0
│   ├── Product image
│   ├── LinearLayout (Horizontal)
│   │   ├── Rate
│   │   └── Product Title
│   ├── Price
│   └── Description
└── LinearLayout (Vertical) <-- Constraint: 0-Bottom, Left-0, Right-0
    ├── LinearLayout (Horizontal)
    │   ├── Minus Button
    │   ├── Quantity Label
    │   └── Plus Button
    └── Add To Cart Button

Product Screen

Category Screen - filter

Switch to home fragment when category has changed.

  • Generate all category from the database and display them
  • Use themes.xml to style category components

To navigate between fragments use

Navigation.findNavController(<VIEW>).navigate(<Destination Frag ID>);

Guide

Database Class

A database class to access product and category tables.
Use Room Library to implement this feature. Guide1 Guide2

TODOs:

  • Configure Room to use the existing DB mentioned in #6

Entity Classes

  • Product
  • Category

DAOs Classes

  • ProductDao
  • CategoryDao

Database class

  • Getters for DAO classes
  • Make it Singleton
  • Make it thread safe using volatile & synchronized

Random Products Database

SQLite database that contains a random products

With the following columns inside Product table:

  • row id [PK]
  • title
  • price (in SAR)
  • description
  • categoryid [FK]
  • image (URL)
  • rating (in the form x.x)

With the following columns inside Category table:

  • row id [PK]
  • name
  • icon

  • import SQLite database into the project as assets

Categories Screen - XML only

Categories Screen

الي بيسويها يسوي اول وحدة بس، الباقي راح تجي برمجيًا على حسب قاعدة البيانات

ConstraintLayout
└── LinearLayout (Vertical) <-- Constraint: 0-Top, Left-0, Right-0
    ├── LinearLayout (Horizontal)
    │   ├── Icon 1
    │   └── Category Name 1
    ├── LinearLayout (Horizontal)
    │   ├── Icon 2
    │   └── Category Name 2
    └── ...

Categories Screen (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.