Tutoriel par Examples: dessinée



context.globalCompositeOperation = "source-over" "source-over" compositing [default] , place tous les nouveaux dessins sur les dessins existants. context.globalCompositeOperation='source-over'; // the default context.drawImage(background,0,0); context.drawImage(parachuter,0,...
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