AndroidMath
AndroidMath copied to clipboard
How to get actual render size?
trafficstars
Is it possible to get the bounding box of the actual rendered content, meaning the height and the width from the canvas?
To get the dimensions of the MTMathView element, use that :
your_MTMathView_element.viewTreeObserver.addOnDrawListener {
val elementWidth = your_MTMathView_element.measuredWidth
val elementHeight = your_MTMathView_element.measuredHeight
}