What options do we have for showing tooltip or balloon when clicking on a icon?
z
Zach Klippenstein (he/him) [MOD]
04/22/2021, 2:32 PM
I don’t think there’s anything specifically for tool tips in compose right now, but you could probably build something with
Popup
. I would start by looking at the
DropdownMenu
component to see how it does anchoring.
➕ 2
d
dewildte
04/22/2021, 6:02 PM
I imagine the desktop version of Compose will have something like this soon.
z
Zach Klippenstein (he/him) [MOD]
04/22/2021, 6:12 PM
I wonder if it would be possible to implement something like what android actionbars do, where the tooltip text is automatically pulled from the accessibility content description or something. AFAIK it’s not possible to read child semantics, so i don’t know how you’d do that with the current API.