This commit is contained in:
skydoves 2021-12-03 16:16:00 +09:00
commit b27f53672a
No known key found for this signature in database
GPG key ID: D7662013FA1A5596
4 changed files with 17 additions and 12 deletions

View file

@ -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. <br> 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. <br>
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 ## Roadmap

View file

@ -48,6 +48,7 @@ dependencies {
implementation "androidx.compose.foundation:foundation-layout:$compose_version" implementation "androidx.compose.foundation:foundation-layout:$compose_version"
implementation "androidx.activity:activity-compose:$compose_activity_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 "com.mxalbert.zoomable:zoomable:$zoomable_version"
implementation("io.coil-kt:coil-compose:1.4.0")
} }

View file

@ -19,17 +19,16 @@ package io.getstream.androiddeveloperroadmap
import android.os.Bundle import android.os.Bundle
import androidx.activity.ComponentActivity import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.material.MaterialTheme import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface import androidx.compose.material.Surface
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp import coil.compose.rememberImagePainter
import com.mxalbert.zoomable.Zoomable import com.mxalbert.zoomable.Zoomable
import com.skydoves.landscapist.glide.GlideImage
import io.getstream.androiddeveloperroadmap.ui.theme.AndroidDeveloperRoadmapTheme import io.getstream.androiddeveloperroadmap.ui.theme.AndroidDeveloperRoadmapTheme
class MainActivity : ComponentActivity() { class MainActivity : ComponentActivity() {
@ -51,13 +50,18 @@ class MainActivity : ComponentActivity() {
@Composable @Composable
private fun Roadmap() { private fun Roadmap() {
Zoomable( Zoomable(
modifier = Modifier.height(3200.dp) modifier = Modifier.fillMaxSize(),
) { ) {
GlideImage( Image(
imageModel = "https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png", painter = rememberImagePainter(
"https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png",
builder = {
placeholder(R.drawable.roadmap_preview)
}
),
modifier = Modifier.fillMaxSize(), modifier = Modifier.fillMaxSize(),
previewPlaceholder = R.drawable.roadmap_preview, contentScale = ContentScale.Fit,
contentScale = ContentScale.Fit contentDescription = null
) )
} }
} }

View file

@ -5,8 +5,8 @@ pluginManagement {
mavenCentral() mavenCentral()
} }
plugins { plugins {
id 'com.android.application' version '7.1.0-alpha13' id 'com.android.application' version '7.1.0-beta03'
id 'com.android.library' version '7.1.0-alpha13' id 'com.android.library' version '7.1.0-beta03'
id 'org.jetbrains.kotlin.android' version '1.5.31' id 'org.jetbrains.kotlin.android' version '1.5.31'
} }
} }