title: Android GridView with ImageView and TextView don´t show well
body: <p>Hi I have a problem displaying my Gridview. I searched many sites and here on StackOverflow but took several days without finding the solution.</p>
  
  <p>I leave here my xml (listado.xml) code where is 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:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
     &gt;
  
  &lt;GridView
      android:id="@+id/grid_release"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:clipChildren="true"
      android:stretchMode="columnWidth"
      android:numColumns="2" 
  
  
      &gt;
  
      &lt;!-- android:stretchMode="columnWidth"
      android:stretchMode="spacingWidthUniform" 
      android:verticalSpacing="1dip"--&gt;
  
  
  
  &lt;/GridView&gt;
  </code></pre>
  
  <p></p>
  
  <p>The xml file with textview and imageview (grid_release.xml):</p>
  
  <pre><code>     &lt;?xml version="1.0" encoding="utf-8"?&gt;
  
    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#DC0000"
  android:orientation="vertical"
  android:gravity="center_horizontal" &gt;
  
  &lt;ImageView
      android:id="@+id/rls_img"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
  
  
       /&gt;
  
  &lt;TextView
      android:id="@+id/rls_txtTitle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
  
      android:text="Titulo" /&gt; 
  </code></pre>
  
  <p></p>
  
  <p>Also leave the code of ImageAdapter:</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
  
      View grid;
  
      if(convertView==null)
      {
          grid = new View(context);
          grid = layoutInflater.inflate(R.layout.grid_release, null);
  
  
  
      }else{
          grid = (View)convertView; //imageView=(ImageView)convertView;
  
      }
  
  
      ImageView rlsimg = (ImageView)grid.findViewById(R.id.rls_img);
   rlsimg.setImageDrawable(LoadImageFromURL(GridViewConfig.getResim_list().get(position)));
      TextView rsltxt = (TextView)grid.findViewById(R.id.rls_txtTitle);
      rsltxt.setText("Adpt00"+position);
      return grid;
  </code></pre>
  
  <p>Thanks for help!!!</p>