GridView display partial imagebutton -


in app,scrollview working fine gridview display partial imgebutons. have display 6 imagebuttons , textview in each grid.3 grids wrking fine below display partial 3 buttons.. pls guide me m doing wrong.

    <linearlayout         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:orientation="vertical" >          <relativelayout             android:id="@+id/relativelayout2"             android:layout_width="fill_parent"             android:layout_height="wrap_content" >              <imageview                 android:id="@+id/firstlabel"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:src="@drawable/latest_ringtone" >             </imageview>              <gridview                 android:id="@+id/grid1"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_below="@id/firstlabel"                 android:gravity="center"                 android:numcolumns="3"                 android:stretchmode="columnwidth" >             </gridview>         </relativelayout>          <relativelayout             android:id="@+id/relativelayout3"             android:layout_width="fill_parent"             android:layout_height="fill_parent"             android:layout_margintop="5dp"             android:gravity="right" >              <imageview                 android:id="@+id/scndlabel"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:src="@drawable/topofmonth" >             </imageview>              <gridview                 android:id="@+id/grid2"                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:layout_below="@id/scndlabel"                 android:gravity="center"                 android:horizontalspacing="2dp"                 android:numcolumns="3"                 android:stretchmode="columnwidth"                 android:verticalspacing="3dp" >             </gridview>         </relativelayout>          <relativelayout             android:id="@+id/relativelayout4"             android:layout_width="fill_parent"             android:layout_height="wrap_content"             android:layout_margintop="5dp" >              <imageview                 android:id="@+id/thrdlabel"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:src="@drawable/alltime_hits" >             </imageview>              <gridview                 android:id="@+id/grid3"                 android:layout_width="fill_parent"                 android:layout_height="fill_parent"                 android:layout_below="@id/thrdlabel"                 android:gravity="center"                 android:horizontalspacing="2dp"                 android:numcolumns="3"                 android:stretchmode="columnwidth"                 android:verticalspacing="3dp" >             </gridview>         </relativelayout>     </linearlayout> </scrollview> 

works extending gridview & override onmeasure().


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -