Centering
Horizontally
imageView.centerHorizontally() imageView.centerHorizontally(20) //offset
Vertically
imageView.centerVertically() imageView.centerVertically(20) //offset
On both axis
imageView.centerInContainer()
Horizontally
imageView.centerHorizontally() imageView.centerHorizontally(20) //offset
Vertically
imageView.centerVertically() imageView.centerVertically(20) //offset
On both axis
imageView.centerInContainer()