https://kotlinlang.org logo
Title
j

John O'Reilly

04/21/2023, 6:52 AM
We might need to split title over multiple lines
b

bod

04/21/2023, 7:00 AM
I thought an "autosize textview" would be cool here, but a quick search shows there's no obvious equivalent for Compose
several articles show their own implementation though, eg this
j

John O'Reilly

04/21/2023, 5:30 PM
using something like following for title
Text(modifier = Modifier.width(200.dp),
    textAlign = TextAlign.Center,
    text = title, fontSize = titleFontSize)
Screenshot_20230421_183030.png
cuts down on rest of space but seems to look better
(not sure what width would be)
if we do something like following with text then we can at least control where break is
"AndroidMakers\n by droidcon"
Screenshot 2023-04-21 at 18.32.45.png
b

bod

04/21/2023, 5:34 PM
maybe just AndroidMakers is enough 😅
j

John O'Reilly

04/21/2023, 5:35 PM
might make droidcon folks unhappy 😃
what do you think @mbonnin? 😃
b

bod

04/21/2023, 5:36 PM
true, true 🙂
m

mbonnin

04/21/2023, 7:12 PM
Yup, official title is
AndroidMakers by droidcon
Actually, it might be
Android Makers
(add one more space 😅 )
j

John O'Reilly

04/21/2023, 7:13 PM
I was wondering about that too and seems no space in https://androidmakers.droidcon.com/
m

mbonnin

04/21/2023, 7:21 PM
Yep looks correct