replaceChild

fun replaceChild(old: View, new: View): Boolean

Replaces this child old with a new view.

old must be part of this Container