mirror of
https://github.com/skydoves/android-developer-roadmap.git
synced 2024-12-24 00:00:01 +03:00
Formatting improved
This commit is contained in:
parent
0c24210719
commit
169d29410a
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue