Do you any materials to better understand how to reach "low level" related to """""view bounds"""""" in the Compose world?
I need 2 distinct things
• where is the "view" on the Window (I'd like to anchor a dialog to a view)
• what is the size of my "view" (≃`View.getMeasuredWidth()` or the value we get from
View.onSizeChanged()
), what is the DPI of the screen where my "view" is (≃`Context.resources.displayMetrics`)
→ I'm aware there is no such "view" in the 100% Compose world, what I'd like is the have such thing within the layout for the result of a given composable
Slack Conversation
Olivier Patry
03/22/2021, 5:10 PM
I'm crossposting this is since it might depends on how the dialog is managed, on Android world or Desktop world for the anchor part of the question.
t
Timo Drick
03/22/2021, 6:40 PM
There is a modifier: and you get LayoutCoordinates which you can use to calculate position in window