centerBetween

fun <T : View> T.centerBetween(x1: Double, y1: Double, x2: Double, y2: Double): T

Chainable method returning this that sets this View in the middle between x1 and x2 and in the middle between y1 and y2


fun <T : View> T.centerBetween(x1: Float, y1: Float, x2: Float, y2: Float): T
fun <T : View> T.centerBetween(x1: Int, y1: Int, x2: Int, y2: Int): T