We might need to split title over multiple lines
# confetti
j
We might need to split title over multiple lines
😅 1
b
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
using something like following for title
Copy code
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
Copy code
"AndroidMakers\n by droidcon"
Screenshot 2023-04-21 at 18.32.45.png
b
maybe just AndroidMakers is enough 😅
j
might make droidcon folks unhappy 😃
what do you think @mbonnin? 😃
b
true, true 🙂
m
Yup, official title is
AndroidMakers by droidcon
Actually, it might be
Android Makers
(add one more space 😅 )
j
I was wondering about that too and seems no space in https://androidmakers.droidcon.com/
m
Yep looks correct