@@ -19,17 +19,16 @@ package io.getstream.androiddeveloperroadmap
19
19
import android.os.Bundle
20
20
import androidx.activity.ComponentActivity
21
21
import androidx.activity.compose.setContent
22
+ import androidx.compose.foundation.Image
22
23
import androidx.compose.foundation.layout.fillMaxSize
23
- import androidx.compose.foundation.layout.height
24
24
import androidx.compose.material.MaterialTheme
25
25
import androidx.compose.material.Surface
26
26
import androidx.compose.runtime.Composable
27
27
import androidx.compose.ui.Modifier
28
28
import androidx.compose.ui.layout.ContentScale
29
29
import androidx.compose.ui.tooling.preview.Preview
30
- import androidx .compose.ui.unit.dp
30
+ import coil .compose.rememberImagePainter
31
31
import com.mxalbert.zoomable.Zoomable
32
- import com.skydoves.landscapist.glide.GlideImage
33
32
import io.getstream.androiddeveloperroadmap.ui.theme.AndroidDeveloperRoadmapTheme
34
33
35
34
class MainActivity : ComponentActivity () {
@@ -51,13 +50,18 @@ class MainActivity : ComponentActivity() {
51
50
@Composable
52
51
private fun Roadmap () {
53
52
Zoomable (
54
- modifier = Modifier .height( 3200 .dp)
53
+ modifier = Modifier .fillMaxSize(),
55
54
) {
56
- GlideImage (
57
- imageModel = " https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png" ,
55
+ Image (
56
+ painter = rememberImagePainter(
57
+ " https://user-images.githubusercontent.com/24237865/144350753-5a52e6e5-3517-476c-8e5c-adad919abe8e.png" ,
58
+ builder = {
59
+ placeholder(R .drawable.roadmap_preview)
60
+ }
61
+ ),
58
62
modifier = Modifier .fillMaxSize(),
59
- previewPlaceholder = R .drawable.roadmap_preview ,
60
- contentScale = ContentScale . Fit
63
+ contentScale = ContentScale . Fit ,
64
+ contentDescription = null
61
65
)
62
66
}
63
67
}
0 commit comments