ES
Size: a a a
ES
ЯН
ВБ
D
VM
val paint = Paint()
paint.color = Color.rgb(0, 0, 0)
paint.strokeWidth = 10f
paint.style = Paint.Style.STROKE
canvas.drawRect(100F, 100F, 200F, 200F, paint)
I
val paint = Paint()
paint.color = Color.rgb(0, 0, 0)
paint.strokeWidth = 10f
paint.style = Paint.Style.STROKE
canvas.drawRect(100F, 100F, 200F, 200F, paint)
VM
ГА
VM
onSizeChanged
protected void onSizeChanged (int w,
int h,
int oldw,
int oldh)
This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0.
ЯН
val paint = Paint()
paint.color = Color.rgb(0, 0, 0)
paint.strokeWidth = 10f
paint.style = Paint.Style.STROKE
canvas.drawRect(100F, 100F, 200F, 200F, paint)
ЯН
ГА
ЯН
VM
HP
a
onCreate(){
supportfragmentmanager.addLifecycleCallback( cb)
}
cb.onFragmentResumed(f: fragment){
if (f is MySuperInterface) { this@activity.setMySuperListener(f) }
}
cb.onFragmentPaused(f: fragment){
if (f is MySuperInterface) { this@activity.removeMySuperListener(f) }
}
Я
DV
DV