GridView items not showing up fully in Android
<p>All GridView Items aren't showing up until I give the height for the layout. </p>

<p>The same settings in a differnt xml works fine. </p>

<p>How will I make it to show all items without giving the height. </p>

<p>It always shows only two items.</p>

<p>Please see below what i had done :</p>

<pre><code> &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/gridOptionsView"
                android:layout_marginBottom="10dp"
                android:visibility="gone"
                android:orientation="vertical" &gt;

                &lt;GridView
                    android:id="@+id/OptionsGrid"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:columnWidth="125dp"
                    android:horizontalSpacing="5dp"
                    android:layout_marginBottom="5dp"
                    android:scrollbars="vertical"
                    android:verticalSpacing="5dp"
                    android:numColumns="2"
                    android:visibility="visible"&gt;
                &lt;/GridView&gt;

            &lt;/LinearLayout&gt;
</code></pre>

<p>I have different Linearlayouts in the XML one of them is shown above. </p>

<p>I am not able to track the issue.</p>

<p>Thanks!</p>