title: How to avoid space between imageview and gridview in linearlayout
body: <p>I have a image view and grid view in my .xml file. When I am executing this file its getting some space between grid view and image view. How to avoid this space...can any one help me to solve this problem.
  thanks in advance...
  my xml code is:
  
  
      
  
  <pre><code>    android:layout_width="0px"
      android:layout_height="0px"&gt;
  &lt;/Button&gt;
  
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;ImageView
          android:id="@+id/prevMonth"
          android:src="@drawable/cal_left_arrow_off2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"&gt;
      &lt;/ImageView&gt;
      &lt;Button
          android:id="@+id/currentMonth"
          android:layout_weight="0.6"
  
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:background="@drawable/calendar_bar2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"&gt;
      &lt;/Button&gt;
      &lt;ImageView
          android:id="@+id/nextMonth"
          android:src="@drawable/cal_right_arrow_off2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"&gt;
      &lt;/ImageView&gt;
  &lt;/LinearLayout&gt;
  &lt;LinearLayout
      android:layout_gravity="bottom|center_horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
      &lt;ImageView
          android:id="@+id/calendarheader"
          android:src="@drawable/blue_bg_with_text2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          &gt;
          &lt;/ImageView&gt;
  &lt;/LinearLayout&gt;
  &lt;GridView
      android:id="@+id/calendar"
      android:numColumns="7"
      android:layout_gravity="top"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p></p>