From c6bc40d3ff132d3992e8a1fb1ca5905c6d20b3f5 Mon Sep 17 00:00:00 2001 From: ArtemEmelyanov Date: Sun, 15 Oct 2023 13:42:11 +0400 Subject: [PATCH] Feature: sneaker model, class for connect db, crud on sneaker --- .idea/compiler.xml | 2 +- .idea/gradle.xml | 2 +- .idea/misc.xml | 2 +- app/build.gradle.kts | 12 ++-- app/src/main/AndroidManifest.xml | 1 + .../com/example/android_programming/App.kt | 8 +++ .../android_programming/MainActivity.kt | 18 ++++++ .../android_programming/SneakerViewModel.kt | 56 ++++++++++++++++++ .../composeui/Navigation/NavController.kt | 5 +- .../composeui/Screens/AdminPanel/AddPanel.kt | 48 ++++++++------- .../AdminPanel/CardSneakerForChange.kt | 19 ++++-- .../Screens/AdminPanel/ChangePanel.kt | 13 ++-- .../Screens/AdminPanel/ChangeSneaker.kt | 51 ++++++++++------ .../Screens/HomeScreen/AboutSneaker.kt | 23 ++++--- .../Screens/HomeScreen/HomeScreen.kt | 10 ++++ .../SneakerRecyclerView/CardSneaker.kt | 10 +++- .../SneakerRecyclerView/RecyclerView.kt | 12 ++-- .../android_programming/dao/SneakerDao.kt | 6 +- .../database/AppDatabase.kt | 32 ++++++++++ .../android_programming/model/PhotoManager.kt | 36 +++++++++++ .../android_programming/model/Sneaker.kt | 7 ++- app/src/main/res/drawable/img.png | Bin 0 -> 42239 bytes app/src/main/res/drawable/img_1.png | Bin 0 -> 51014 bytes app/src/main/res/drawable/img_2.png | Bin 0 -> 49923 bytes app/src/main/res/drawable/img_3.png | Bin 0 -> 42910 bytes app/src/main/res/drawable/img_4.png | Bin 0 -> 49717 bytes app/src/main/res/drawable/img_5.png | Bin 0 -> 47000 bytes 27 files changed, 286 insertions(+), 87 deletions(-) create mode 100644 app/src/main/java/com/example/android_programming/App.kt create mode 100644 app/src/main/java/com/example/android_programming/SneakerViewModel.kt create mode 100644 app/src/main/java/com/example/android_programming/database/AppDatabase.kt create mode 100644 app/src/main/java/com/example/android_programming/model/PhotoManager.kt create mode 100644 app/src/main/res/drawable/img.png create mode 100644 app/src/main/res/drawable/img_1.png create mode 100644 app/src/main/res/drawable/img_2.png create mode 100644 app/src/main/res/drawable/img_3.png create mode 100644 app/src/main/res/drawable/img_4.png create mode 100644 app/src/main/res/drawable/img_5.png diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b589d56..e58d3e4 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 74994dd..17b2cdd 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -8,7 +8,7 @@