I use the below grid layout with layout_columnWeight and layout_rowWeight to centralize my view in the grid cell.
the version of GridLayout in support library is backward compatible and supports weights as mentioned here:
https://developer.android.com/reference/android/support/v7/widget/GridLayout.html
so you just need to add compile 'com.android.support:gridlayout-v7:23.1.1' to your build.gradle file and use support gridlayout instead ;)
use it like below (android.support.v7.widget.GridLayout) in your layout xml file: