evalddi1dev2016's People
evalddi1dev2016's Issues
Show product details
Swap view modes for the product list (from server)
Add an option in the ActionBar
menu to change the way products are being shown: List or Grid interchangeably.
Only for the list populated from the server not the buying list
hold.it
Remove a product from buying-list
The product detail activity should have a button add/remove from buying list
Add a item in the actionbar menu for the "cart" fragment
Add and Item in menu:
- Only visible when the cart fragment is active.
- OnClick: show a new activity with the total cart price and a pay button.
1 Use ViewPager to show fragments on the MainActivity
3 List product from the "local" cart into a ListView
List the products from the local buying that you added in #2.
The same is the as in #2 but the reverse.
Take a look here:
https://github.com/google/gson
Add products to cart
Add products from the products list to a "local" cart saved into a hardcoded array or in the phone memory.
The best way is to convert each of your "Product" object to JsonObjectadd it to a JsonArray, turn the *_JsonArray *_into a String, save this string into a file and then later retrieve it.
- Bonus for using Gson.
Use RecyclerView
List products from server/local using recyclerView instead of ListView/GridView
compile 'com.android.support:recyclerview-v7:21.0.+'
2 List products from server in a gridView
Retrieve and list products in a GridView
:
- You need to *Asynchronously * load the products from here into a *ProductsListAdapter *
- Async Images loading in adapter with Glide or Picasso
Products url : https://api.myjson.com/bins/27dd6
You can take a look here:
http://developer.android.com/training/volley/request.html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.