From 14b0959bc2f75a86cbb290acaeb92348f41590ec Mon Sep 17 00:00:00 2001 From: adm Date: Thu, 7 Nov 2024 18:36:23 +0300 Subject: [PATCH] add editfragment --- .idea/deploymentTargetSelector.xml | 2 +- .../autorization/ui/adapters/UserAdapter.kt | 14 ++-- .../ui/adapters/UserAdapterDiffUtils.kt | 55 +++++++++++++ .../ui/fragments/UsersFragment.kt | 61 --------------- .../ui/fragments/edituser/EditUser.kt | 6 ++ .../ui/fragments/edituser/EditUserFragment.kt | 30 ++++++++ .../fragments/edituser/EditUserViewModel.kt | 40 ++++++++++ .../ui/fragments/signup/SignUpScreen.kt | 18 ++++- .../ui/fragments/signup/SignUpViewModel.kt | 22 +++--- .../ui/fragments/users/UserState.kt | 8 ++ .../ui/fragments/users/UsersFragment.kt | 77 +++++++++++++++++++ app/src/main/res/layout/activity_main.xml | 2 +- .../res/layout/fragment_edtit_user_screen.xml | 74 ++++++++++++++++++ app/src/main/res/layout/fragment_users.xml | 26 ++++++- app/src/main/res/values/strings.xml | 3 + 15 files changed, 354 insertions(+), 84 deletions(-) create mode 100644 app/src/main/java/com/example/autorization/ui/adapters/UserAdapterDiffUtils.kt delete mode 100644 app/src/main/java/com/example/autorization/ui/fragments/UsersFragment.kt create mode 100644 app/src/main/java/com/example/autorization/ui/fragments/edituser/EditUser.kt create mode 100644 app/src/main/java/com/example/autorization/ui/fragments/edituser/EditUserFragment.kt create mode 100644 app/src/main/java/com/example/autorization/ui/fragments/edituser/EditUserViewModel.kt create mode 100644 app/src/main/java/com/example/autorization/ui/fragments/users/UserState.kt create mode 100644 app/src/main/java/com/example/autorization/ui/fragments/users/UsersFragment.kt create mode 100644 app/src/main/res/layout/fragment_edtit_user_screen.xml diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index f0e8a14..0964906 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,7 +4,7 @@