title: Change row height in gridview
body: <p>I'm new to Android development and making my first app, it's a wordsearch app for a project and I am using a GridView to display the letters for the search. I was able to change the width of the cells in the grid using the layout xml's, however I can't change the height and at the moment it's far too much.</p>
  
  <p>I tried to Google answers on how to do this but everything I found said about overriding getView in a custom arrayAdapter, and I don't really follow how to do that or how to set the height to a fixed amount when doing it. I have the row width set to 25dp in the layout files and want to change the height to match that, but I can't seem to find any easy to follow way of doing it online.</p>
  
  <p>Cheers in advance if you can help.</p>
  
  <p>Edit: Here is where I fill the grids:</p>
  
  <pre><code>//fill GridView with the puzzle input array from the puzzle class
  ArrayAdapter&lt;String&gt; gridAdapter = new ArrayAdapter&lt;String&gt;(c, R.layout.cell_layout, todaysPuzzle.puzzleInputArray);
  wordsearchGrid.setAdapter(gridAdapter);
  
  //fill ListView with the searchWords array from the puzzle class
  ArrayAdapter&lt;String&gt; wordsAdapter = new ArrayAdapter&lt;String&gt;(c, R.layout.cell_layout, todaysPuzzle.searchWords);
  wordsList.setAdapter(wordsAdapter);
  </code></pre>
  
  <p>Here is the layout for the gridView (I'm using two, one for the wordsearch and one to store the search words:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="@android:color/black"
  tools:context="little.keith.wordsearch.TodaysActivity" &gt;
  
  &lt;GridView
      android:id="@+id/wordsearchGrid"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentStart="true"
      android:layout_alignParentTop="true"
      android:layout_margin="4dp"
      android:background="@android:color/black"
      android:columnWidth="25dp"
      android:gravity="top"
      android:horizontalSpacing="2dp"
      android:numColumns="12"
      android:stretchMode="none"
      android:verticalSpacing="2dp" &gt;
  &lt;/GridView&gt;
  
  &lt;GridView
      android:id="@+id/wordsList"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_margin="4dp"
      android:background="@android:color/black"
      android:numColumns="auto_fit"
      android:layout_below="@+id/wordsearchGrid"
      android:horizontalSpacing="2dp"
      android:verticalSpacing="2dp"
      android:layout_centerHorizontal="true" &gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is the cell_layout.xml:</p>
  
  <pre><code>&lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@android:id/text1"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:background="@android:color/white"
  android:gravity="center"
  android:minHeight="?android:attr/listPreferredItemHeight"
  android:paddingStart="1dp"
  android:paddingEnd="1dp"
  android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  </code></pre>