Rxjava + retro fit + MVP realize shopping cart function
This example shares the specific code of rxjava retro to realize the shopping cart for your reference. The specific contents are as follows
design sketch:
1. Dependence
2. Layout
1. Adder and subtractor layout_ add_ delete
2. Product details layout activity_ main
3. Shopping cart layout activity_ main2
4. Secondary list group level layout ex_ group_ item
5. Secondary list sub layout ex_ child_ item
3. Entity class
1. MessageBean
2.GoodsShowBean
3. CartBean
4. GroupBean
5.ChildBean
4. Interface
1.ApiService
5. Code
1. User defined view adder and subtracter adddeleteview
2. Retrofit tool class retrofitutils
3. M floor
4. P layer
5. Mainactivity product details page
6. Secondary list adapter expandableadapter
7. Shopping cart page logic main2activity
6. Attachment
Shape graph edit
Application initialization fresco
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.