code: public void setAxis(int axis)
      {
          boolean axisChanged = (axis != majorAxis);
          majorAxis = axis;
          if (axisChanged)
          {
              preferenceChanged(null, true, true);
          }
      }
docs: Sets the tile axis property. This is the axis along which the child views
  are tiled.
  
  @param axis
  either <code>View.X_AXIS</code> or <code>View.Y_AXIS</code>