From 96fe7431139091ddaa78839c423791a76728f75d Mon Sep 17 00:00:00 2001 From: Jaewoong Eum Date: Fri, 3 Dec 2021 00:04:26 +0900 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b00653..531f2d7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Android Developer Roadmap 2022 suggests learning paths to understanding Android Each node indicates concepts of Android systems, Android SDK, and generally used libraries. It would be helpful to refer to the [Android Developers Reference](https://developer.android.com/reference) or GitHub for the specific terminologies.
-In addition, this roadmap doesn't cover everything about Android development, and you don't need to learn everything from it. So we recommend only reading the sections that would be helpful to you. +In addition, **you don't need to learn everything from this roadmap**. So we recommend only reading the sections that would be helpful to you. ## Roadmap From 0c24210719e9979bd2cf9e1813879c0ff6f9387c Mon Sep 17 00:00:00 2001 From: Yogesh Choudhary Paliyal Date: Thu, 2 Dec 2021 22:29:33 +0530 Subject: [PATCH 2/3] Fix Crash for low end devices. Used Coil instead of Glide to load Image. --- app/build.gradle | 3 +- .../androiddeveloperroadmap/MainActivity.kt | 54 ++++++++++--------- settings.gradle | 4 +- 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 35b898b..2806edb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,6 +48,7 @@ dependencies { implementation "androidx.compose.foundation:foundation-layout:$compose_version" implementation "androidx.activity:activity-compose:$compose_activity_version" - implementation "com.github.skydoves:landscapist-glide:$landscapist_version" implementation "com.mxalbert.zoomable:zoomable:$zoomable_version" + + implementation("io.coil-kt:coil-compose:1.4.0") } diff --git a/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt b/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt index 10d852e..a3378b2 100644 --- a/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt +++ b/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt @@ -19,53 +19,55 @@ package io.getstream.androiddeveloperroadmap import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent +import androidx.compose.foundation.Image import androidx.compose.foundation.layout.fillMaxSize -import androidx.compose.foundation.layout.height import androidx.compose.material.MaterialTheme import androidx.compose.material.Surface import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.tooling.preview.Preview -import androidx.compose.ui.unit.dp +import coil.compose.rememberImagePainter import com.mxalbert.zoomable.Zoomable -import com.skydoves.landscapist.glide.GlideImage import io.getstream.androiddeveloperroadmap.ui.theme.AndroidDeveloperRoadmapTheme class MainActivity : ComponentActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) - setContent { - AndroidDeveloperRoadmapTheme { - Surface( - color = MaterialTheme.colors.background - ) { - Roadmap() + setContent { + AndroidDeveloperRoadmapTheme { + Surface( + color = MaterialTheme.colors.background + ) { + Roadmap() + } + } } - } } - } } @Composable private fun Roadmap() { - Zoomable( - modifier = Modifier.height(3200.dp) - ) { - GlideImage( - imageModel = "https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png", - modifier = Modifier.fillMaxSize(), - previewPlaceholder = R.drawable.roadmap_preview, - contentScale = ContentScale.Fit - ) - } + Zoomable( + modifier = Modifier.fillMaxSize(), + ) { + Image( + painter = rememberImagePainter("https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png", + builder = { + placeholder(R.drawable.roadmap_preview) + }), + modifier = Modifier.fillMaxSize(), + contentScale = ContentScale.Fit, + contentDescription = null + ) + } } @Preview(showBackground = true) @Composable private fun DefaultPreview() { - AndroidDeveloperRoadmapTheme { - Roadmap() - } + AndroidDeveloperRoadmapTheme { + Roadmap() + } } diff --git a/settings.gradle b/settings.gradle index f20e4a4..7b04270 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,8 +5,8 @@ pluginManagement { mavenCentral() } plugins { - id 'com.android.application' version '7.1.0-alpha13' - id 'com.android.library' version '7.1.0-alpha13' + id 'com.android.application' version '7.1.0-beta03' + id 'com.android.library' version '7.1.0-beta03' id 'org.jetbrains.kotlin.android' version '1.5.31' } } From 169d29410a4e998b5b8dcc1d90c724bb2f44b7af Mon Sep 17 00:00:00 2001 From: Yogesh Choudhary Paliyal Date: Thu, 2 Dec 2021 22:43:39 +0530 Subject: [PATCH 3/3] Formatting improved --- .../androiddeveloperroadmap/MainActivity.kt | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt b/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt index a3378b2..9d7dfc3 100644 --- a/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt +++ b/app/src/main/kotlin/io/getstream/androiddeveloperroadmap/MainActivity.kt @@ -32,42 +32,44 @@ import com.mxalbert.zoomable.Zoomable import io.getstream.androiddeveloperroadmap.ui.theme.AndroidDeveloperRoadmapTheme class MainActivity : ComponentActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) - setContent { - AndroidDeveloperRoadmapTheme { - Surface( - color = MaterialTheme.colors.background - ) { - Roadmap() - } - } + setContent { + AndroidDeveloperRoadmapTheme { + Surface( + color = MaterialTheme.colors.background + ) { + Roadmap() } + } } + } } @Composable private fun Roadmap() { - Zoomable( - modifier = Modifier.fillMaxSize(), - ) { - Image( - painter = rememberImagePainter("https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png", - builder = { - placeholder(R.drawable.roadmap_preview) - }), - modifier = Modifier.fillMaxSize(), - contentScale = ContentScale.Fit, - contentDescription = null - ) - } + Zoomable( + modifier = Modifier.fillMaxSize(), + ) { + Image( + painter = rememberImagePainter( + "https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png", + builder = { + placeholder(R.drawable.roadmap_preview) + } + ), + modifier = Modifier.fillMaxSize(), + contentScale = ContentScale.Fit, + contentDescription = null + ) + } } @Preview(showBackground = true) @Composable private fun DefaultPreview() { - AndroidDeveloperRoadmapTheme { - Roadmap() - } + AndroidDeveloperRoadmapTheme { + Roadmap() + } }