Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text composables: Android Basics with Compose #990

Open
jamesdidit72 opened this issue Jan 6, 2025 · 0 comments
Open

Text composables: Android Basics with Compose #990

jamesdidit72 opened this issue Jan 6, 2025 · 0 comments

Comments

@jamesdidit72
Copy link

URL of codelab

9.4 (Add greeting to the app, Add padding to the signature and align it to the right.)

Describe the problem

says todo Text( text = from, fontSize = 36.sp, modifier = Modifier .padding(16.dp) .align(alignment = Alignment.End) )
but it doesn't work. Cant get .align to not error. The fix is Column(verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.End, modifier = modifier .padding(8.dp)) { Text( text = message, fontSize = 100.sp, lineHeight = 116.sp, textAlign = TextAlign.Center )
doing the horizontalAlignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant