From 5380cd0c74285f1bece5ed691b4b6542b51bc1ad Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Mon, 20 Apr 2020 16:30:02 +0100 Subject: [PATCH] View binding completed for both fragments and item view layout. Data populated in recycler view completed. Back button navigation completed. Title for fragments completed. Displaying of profile images with Picasso added. --- .idea/gradle.xml | 1 + app/build.gradle | 2 + app/src/main/AndroidManifest.xml | 3 + .../com/example/h_mal/candyspace/AppClass.kt | 16 ++ .../h_mal/candyspace/data/api/ApiClass.kt | 2 +- .../h_mal/candyspace/data/api/ApiResponse.kt | 8 + .../h_mal/candyspace/data/api/BadgeCounts.kt | 16 ++ .../candyspace/data/api/ResponseUnwrap.kt | 2 +- .../example/h_mal/candyspace/data/api/User.kt | 3 + .../data/repositories/Repository.kt | 6 +- .../h_mal/candyspace/ui/MainActivity.kt | 75 +++++++- .../candyspace/ui/main/ListItemViewModel.kt | 16 ++ .../h_mal/candyspace/ui/main/MainFragment.kt | 61 +++++-- .../h_mal/candyspace/ui/main/MainViewModel.kt | 39 ++++- .../candyspace/ui/main/UserProfileFragment.kt | 49 ++++++ .../h_mal/candyspace/utils/DataBindUtils.kt | 18 ++ .../h_mal/candyspace/utils/ViewUtils.kt | 17 ++ .../main/res/layout/fragment_user_profile.xml | 162 ++++++++++++++++++ app/src/main/res/layout/list_item_layout.xml | 39 +++++ app/src/main/res/layout/main_activity.xml | 11 +- app/src/main/res/layout/main_fragment.xml | 10 +- app/src/main/res/values/strings.xml | 3 + .../data/repositories/RepositoryTest.kt | 12 +- 23 files changed, 531 insertions(+), 40 deletions(-) create mode 100644 app/src/main/java/com/example/h_mal/candyspace/data/api/ApiResponse.kt create mode 100644 app/src/main/java/com/example/h_mal/candyspace/data/api/BadgeCounts.kt create mode 100644 app/src/main/java/com/example/h_mal/candyspace/ui/main/ListItemViewModel.kt create mode 100644 app/src/main/java/com/example/h_mal/candyspace/ui/main/UserProfileFragment.kt create mode 100644 app/src/main/java/com/example/h_mal/candyspace/utils/DataBindUtils.kt create mode 100644 app/src/main/java/com/example/h_mal/candyspace/utils/ViewUtils.kt create mode 100644 app/src/main/res/layout/fragment_user_profile.xml create mode 100644 app/src/main/res/layout/list_item_layout.xml diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 440480e..5cd135a 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +