Imitation meituan app Android Java

Tengmu 2022-02-13 08:40:51 阅读数:606

imitation meituan app android java

Native Android Imitated meituan App

brief introduction

Write the first native Android project .

Reference material 《 First line of code ( The first 2 edition )》 And various search engines .

Because I used to write Flutter Of , Just started learning native Android, So some places are not well written , Understanding is everything .

Sample screenshot

Home page Details page The shopping cart Order QR code

Demo video

https://www.bilibili.com/video/BV1Nq4y1m7kK

Project description

front end

Native Android、xml Writing interface 、Java Write logic

function Realization
Shop list 、 List of dishes 、 Shopping cart list RecyclerView
Image loading Picasso
Network request RequestQueue+StringRequest
Json analysis Gson
Shopping cart pop-up PopupWindow
Entity classes are generated automatically GsonFormatPlus plug-in unit

Back end

python Language 、Flask frame

function Interface Sending method Returns the format
Get a list of stores http://10.0.2.2:5000/home GET Json
Get menu http://10.0.2.2:5000/detail/1 (1 On behalf of the 1 Food information of this store ) GET Json
Send order , Generate qr code http://10.0.2.2:5000/submit POST Jso

Use qrcode Library to generate two-dimensional code . Since there is no data source , So the data is all static .

Use steps

1. Download backend items

Warehouse link :
https://github.com/cnatom/MeiTuanAndroidAppServer

Or execute... In the terminal :

git clone https://github.com/cnatom/MeiTuanAndroidAppServer.git

2. Running back-end services

Use the back-end project directly pycharm open , Introduce related dependency packages , Finally, run directly .

You can also run ,app.py Run the terminal command under the file directory :

flask run

3. Download this App project

Warehouse link :

https://github.com/cnatom/MeiTuanAndroidApp

Or execute... In the terminal :

git clone https://github.com/cnatom/MeiTuanAndroidApp.git

4. function App

use Android Studio open , Can run .

copyright:author[Tengmu],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130840494991.html