Tutoriel par Examples: assidu



mView.afterMeasured { // inside this block the view is completely drawn // you can get view's height/width, it.height / it.width } Sous la capuche inline fun View.afterMeasured(crossinline f: View.() -> Unit) { viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGloba...

Page 1 de 1