-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathIntroductionSlideView.kt
More file actions
41 lines (39 loc) · 1.4 KB
/
Copy pathIntroductionSlideView.kt
File metadata and controls
41 lines (39 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.adesso.movee.scene.introduction
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.painterResource
import com.adesso.movee.R
import com.adesso.movee.domain.IntroductionPage
@Composable
fun IntroductionSlideView(page: IntroductionPage) {
Column(
modifier = Modifier.fillMaxWidth(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
Image(
painter = painterResource(id = page.imageResId),
contentDescription = null,
modifier = Modifier.weight(1f)
)
Text(
text = page.text, style = MaterialTheme.typography.body1,
modifier = Modifier.padding(
top = dimensionResource(
id = R.dimen.introduction_slide_text_top_padding
)
),
color = Color.White
)
}
}