From a3690e7ef08cb040a8545e00e9e52c252013ad30 Mon Sep 17 00:00:00 2001 From: lvmeng <848755140@qq.com> Date: Thu, 11 Sep 2025 16:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=81=E9=87=87=E6=A0=B7=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96=E3=80=81?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E7=A7=BB=E5=8A=A8=E5=88=B0layout=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetSelector.xml | 4 +- app/build.gradle.kts | 35 +- app/release/baselineProfiles/0/app-release.dm | Bin 3353 -> 3247 bytes app/release/baselineProfiles/1/app-release.dm | Bin 3283 -> 3176 bytes app/src/main/AndroidManifest.xml | 14 +- .../dish/match/adapter/TextCellAdapter.kt | 2 +- .../com/shuwei/dish/match/base/BaseApp.kt | 7 +- .../shuwei/dish/match/dialog/BottomDialog.kt | 10 +- .../shuwei/dish/match/dialog/BottomDialog2.kt | 3 +- .../shuwei/dish/match/dialog/LoadingDialog.kt | 16 +- .../com/shuwei/dish/match/http/HttpUtil.kt | 182 +++-- .../com/shuwei/dish/match/http/UrlConfig.kt | 26 +- .../dish/match/ui/DeviceConfigActivity.kt | 3 + .../dish/match/ui/DishSamplingActivity.kt | 54 +- .../com/shuwei/dish/match/ui/HomeActivity.kt | 44 +- .../com/shuwei/dish/match/ui/InitActivity.kt | 198 +++++ .../dish/match/ui/PrepareCookActivity.kt | 5 +- .../dish/match/ui/SubmitFoodActivity.kt | 5 +- .../match/ui/fragment/DishListFragment.kt | 28 +- .../com/shuwei/dish/match/utils/AppUtil.java | 750 ++++++++++++++++++ .../com/shuwei/dish/match/utils/QRCodeUtil.kt | 100 +++ .../com/shuwei/dish/match/utils/SpTool.kt | 30 + .../com/shuwei/dish/match/utils/WeightUtil.kt | 39 +- app/src/main/res/drawable/bg_init_button.xml | 11 + app/src/main/res/drawable/bg_splash.xml | 13 + app/src/main/res/drawable/img_init.png | Bin 0 -> 1023089 bytes .../activity_base.xml | 0 .../activity_device_config.xml | 21 - .../activity_device_setting.xml | 0 .../activity_dish_sampling.xml | 23 +- .../activity_food_search.xml | 0 .../activity_home.xml | 0 app/src/main/res/layout/activity_init.xml | 49 ++ .../activity_prepare_cook.xml | 0 .../activity_sampling.xml | 0 .../activity_select_dish.xml | 0 .../activity_submit_dish.xml | 0 .../activity_submit_food.xml | 0 .../custom_toast.xml | 0 .../dialog_bottom_sheet.xml | 0 .../dialog_bottom_sheet2.xml | 0 .../dialog_common.xml | 0 .../dialog_loading.xml | 0 .../fragment_dish_list.xml | 0 .../fragment_dish_sampling.xml | 0 .../fragment_sampling_list.xml | 0 .../layout_empty_view.xml | 0 .../layout_food_remind.xml | 0 .../layout_grid.xml | 0 .../list_item_cell.xml | 0 .../list_item_dish.xml | 0 .../list_item_dish_cook.xml | 0 .../list_item_dish_record.xml | 0 .../list_item_home_mode.xml | 0 .../list_item_search_goods_info.xml | 0 .../main/res/mipmap-xxhdpi/ic_logo1024.png | Bin 0 -> 52690 bytes app/src/main/res/mipmap-xxhdpi/ic_logo512.png | Bin 0 -> 27262 bytes app/src/main/res/values-night/themes.xml | 6 +- app/src/main/res/values/themes.xml | 6 +- .../main/res/xml/network_security_config.xml | 10 +- gradle/libs.versions.toml | 4 + 61 files changed, 1455 insertions(+), 243 deletions(-) create mode 100644 app/src/main/java/com/shuwei/dish/match/ui/InitActivity.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/utils/AppUtil.java create mode 100644 app/src/main/java/com/shuwei/dish/match/utils/QRCodeUtil.kt create mode 100644 app/src/main/java/com/shuwei/dish/match/utils/SpTool.kt create mode 100644 app/src/main/res/drawable/bg_init_button.xml create mode 100644 app/src/main/res/drawable/bg_splash.xml create mode 100644 app/src/main/res/drawable/img_init.png rename app/src/main/res/{layout-sw800dp => layout}/activity_base.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_device_config.xml (83%) rename app/src/main/res/{layout-sw800dp => layout}/activity_device_setting.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_dish_sampling.xml (94%) rename app/src/main/res/{layout-sw800dp => layout}/activity_food_search.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_home.xml (100%) create mode 100644 app/src/main/res/layout/activity_init.xml rename app/src/main/res/{layout-sw800dp => layout}/activity_prepare_cook.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_sampling.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_select_dish.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_submit_dish.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/activity_submit_food.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/custom_toast.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/dialog_bottom_sheet.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/dialog_bottom_sheet2.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/dialog_common.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/dialog_loading.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/fragment_dish_list.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/fragment_dish_sampling.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/fragment_sampling_list.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/layout_empty_view.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/layout_food_remind.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/layout_grid.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_cell.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_dish.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_dish_cook.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_dish_record.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_home_mode.xml (100%) rename app/src/main/res/{layout-sw800dp => layout}/list_item_search_goods_info.xml (100%) create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_logo1024.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_logo512.png diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index ec422bc..98a7c53 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@