From 72b63f14709967ef32bed39d23c7cb59b3fef566 Mon Sep 17 00:00:00 2001 From: Jue Chen <3330584+jchprj@users.noreply.github.com> Date: Mon, 29 Mar 2021 01:07:40 +0800 Subject: [PATCH] Update repo commit version in 08_Creating_the_Android_application.md --- .../08_Creating_the_Android_application.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Networking and Data Storage with Kotlin Multiplatfrom Mobile/08_Creating_the_Android_application.md b/Networking and Data Storage with Kotlin Multiplatfrom Mobile/08_Creating_the_Android_application.md index af38aca..3726feb 100644 --- a/Networking and Data Storage with Kotlin Multiplatfrom Mobile/08_Creating_the_Android_application.md +++ b/Networking and Data Storage with Kotlin Multiplatfrom Mobile/08_Creating_the_Android_application.md @@ -22,7 +22,7 @@ dependencies { ## Implementing the UI: display the list of rocket launches -Let's modify `activity_main.xml` to implement the UI we need. The screen is based on the `ConstraintLayout` with the `SwipeRefreshLayout` inside it, which contains `RecyclerView` and `FrameLayout` with a background with `ProgressBar` across its center. You can view all the layout code in the [commit](https://github.com/kotlin-hands-on/kmm-networking-and-data-storage/commit/27fcb711582ba3b069650c3d385663f521e426be) for this stage. +Let's modify `activity_main.xml` to implement the UI we need. The screen is based on the `ConstraintLayout` with the `SwipeRefreshLayout` inside it, which contains `RecyclerView` and `FrameLayout` with a background with `ProgressBar` across its center. You can view all the layout code in the [commit](https://github.com/kotlin-hands-on/kmm-networking-and-data-storage/commit/2f0abc1e4a8716b9d7d3abd3b443e01951b03046) for this stage. Now let's add the properties for the UI elements to the `MainActivity` class: @@ -72,7 +72,7 @@ class LaunchesRvAdapter(var launches: List) : RecyclerView.Adapter } ``` -You can view the full XML layout code and the full implementation of the RecyclerView adapter in the [commit](https://github.com/kotlin-hands-on/kmm-networking-and-data-storage/commit/27fcb711582ba3b069650c3d385663f521e426be) for this stage. +You can view the full XML layout code and the full implementation of the RecyclerView adapter in the [commit](https://github.com/kotlin-hands-on/kmm-networking-and-data-storage/commit/2f0abc1e4a8716b9d7d3abd3b443e01951b03046) for this stage. Now we need to create an instance of `LaunchesRvAdapter` in the `MainActivity` class, configure the `RecyclerView` component, add a listener to the `SwipeRefreshLayout` to catch the screen refresh gesture, and implement all the LaunchesListView interface functions: