title: Add multiple text views in GridView
body: <p>I am trying to add to text views in GridView but unfortunately just one of to is added .. I am tried to make another adapter to second TextView but same problem I think problem in this line in my adapter but I can't figure it out ..</p>
  
  <pre><code>((TextView) view.findViewById(R.id.title)).setText(catList.get(position));
  </code></pre>
  
  <p>So this is my GridView </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:background="#DDACA4A4"
  tools:context=".MainActivity"&gt;
  
  &lt;GridView
      android:id="@+id/catGridView"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="1"
      android:padding="10dp"
      android:background="@drawable/border"
      android:columnWidth="100dp"
      android:gravity="center"
      android:numColumns="2"&gt;
  
  
  &lt;/GridView&gt;
  </code></pre>
  
  <p></p>
  
  <p>And this is mainActivity java class </p>
  
  <p>catGrid = findViewById(R.id.catGridView);</p>
  
  <pre><code>    List&lt;String&gt; catList2 = new ArrayList&lt;&gt;();
      catList2.add("subTitle 1");
      catList2.add("subTitle 2");
      catList2.add("subTitle 3");
      catList2.add("subTitle 4");
      catList2.add("subTitle 5");
      catList2.add("subTitle 6");
  
      CatGridAdapter2 adapter2 = new CatGridAdapter2(catList2);
      catGrid.setAdapter(adapter2);
  
      List&lt;String&gt; catList = new ArrayList&lt;&gt;();
      catList.add("Cat 1");
      catList.add("Cat 2");
      catList.add("Cat 3");
      catList.add("Cat 4");
      catList.add("Cat 5");
      catList.add("Cat 6");
  
      CatGridAdapter adapter = new CatGridAdapter(catList);
      catGrid.setAdapter(adapter);
  }
  </code></pre>
  
  <p>And this is my adapter</p>
  
  <pre><code>public class CatGridAdapter extends BaseAdapter {
  
  
  private List&lt;String&gt; catList;
  
  
  public CatGridAdapter(List&lt;String&gt; catList) {
      this.catList = catList;
  }
  @Override
  public int getCount() {
      return catList.size();
  }
  
  @Override
  public Object getItem(int position) {
      return null;
  }
  
  @Override
  public long getItemId(int position) {
      return 0;
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      View view;
  
      if (convertView == null) {
          view = LayoutInflater.from(parent.getContext()).inflate(R.layout.quizitem, parent, false);
      } else {
          view = convertView;
      }
      ((TextView) view.findViewById(R.id.title)).setText(catList.get(position));
  
  
      return view;
  }
  </code></pre>
  
  <p>I am tried to find solution but I can't find any thing ..</p>