Grigoriev Dmitriy
10/27/2020, 12:16 PMalorma
10/27/2020, 12:20 PMGrigoriev Dmitriy
10/27/2020, 12:21 PMGrigoriev Dmitriy
10/27/2020, 12:21 PMGrigorii Yurkov
10/27/2020, 12:21 PMGrigoriev Dmitriy
10/27/2020, 12:25 PM@Composable
fun SplashScreen(){
ConstraintLayout(
modifier = Modifier.fillMaxSize()
) {
val (appLogoRef, authorSignatureRef) = createRefs()
Text(
color = Color(R.color.splash_text_color),
text = "App logo",
style = TextStyle(
fontWeight = FontWeight.W900,
fontSize = 32.sp
),
modifier = Modifier.constrainAs(appLogoRef){
linkTo(
top = <http://parent.top|parent.top>,
bottom = parent.bottom,
start = parent.start,
end = parent.end
)
}
)
Text(
color = Color(R.color.splash_text_color),
text = "by author",
style = TextStyle(
fontWeight = FontWeight.W900,
fontSize = 16.sp
),
modifier = Modifier.constrainAs(authorSignatureRef){
bottom.linkTo(parent.bottom, 16.dp)
end.linkTo(parent.end, 16.dp)
}
)
}
}
alorma
10/27/2020, 12:25 PMalorma
10/27/2020, 12:26 PMcolorResource
Color(colorResource(id = R.color.purple_200))
Grigoriev Dmitriy
10/27/2020, 12:28 PMGrigorii Yurkov
10/27/2020, 12:29 PMalorma
10/27/2020, 12:29 PMGrigoriev Dmitriy
10/27/2020, 12:30 PMalorma
10/27/2020, 12:30 PMGrigoriev Dmitriy
10/27/2020, 12:31 PMGrigorii Yurkov
10/27/2020, 12:34 PMcolor.xml
in compose?alorma
10/27/2020, 12:35 PMGrigorii Yurkov
10/27/2020, 12:36 PMColors.kt
for this purposealorma
10/27/2020, 12:40 PMalorma
10/27/2020, 12:40 PMGrigorii Yurkov
10/27/2020, 12:43 PMmattinger
10/27/2020, 5:42 PMmattinger
10/27/2020, 5:43 PM