code: protected final int getColumnWidthCompatible() {
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
              return super.getColumnWidth();
          } else {
              try {
                  Field columnWidth = GridView.class.getDeclaredField("mColumnWidth");
                  columnWidth.setAccessible(true);
                  return columnWidth.getInt(this);
              } catch (Exception e) {
                  throw new RuntimeException("Unable to retrieve column width", e);
              }
          }
      }
docs: Returns the width of the grid view's columns by either using the
  <code>getColumnWidth</code>-method on devices with API level 16 or greater, or via
  reflection on older devices.
  
  @return The width of the grid view's columns in pixels as an {@link Integer} value or -1, if
  the layout is pending