is there a way to provide InlineContent in Text wi...
# compose-android
b
is there a way to provide InlineContent in Text with the remaining available space on the line of text it will be rendered in? trying allow an image to utilize the remaining width of a given line (e.g rendering a math equation svg inline)
z
you could use the
TextLayoutResult
and have the image draw outside its bounds, i think
b
interesting; i also have inline content drawing on it's own line no matter what i feed in as placeholder and inline composable
z
yea they’re not clipped, so you can draw wherever you want
fwiw, i’d like us to support more advanced inline content measuring at some point, but not a priority at the moment
b
gotcha
z
and i’m not sure how we’d even implement this… the Android APIs that inline content is based on i don’t think are powerful enough to get the metrics of the line as it’s laid out up to the current content item
add it to the list of reasons to pull out the entire text stack into Compose 😅
🤞 2
🤞🏾 1
1
e
Will this happen? (…eventually)
b
Was able to get them to resize via layout result.
😍 1
z
Will this happen? (…eventually)
Idk, i think up to @Anastasia [G] at the moment 😂
💚 1