Code example for GridView

Methods: setAdaptersetHorizontalSpacingsetVerticalSpacing, setId, setLayoutParams