views:

10

answers:

1

My xml code is:

    <GridView android:id="@+id/gridView_calendar"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:layout_weight="1" android:numColumns="5"/>

But there appear to the right of the gridView a blank. Its size seems for scroll bar. I don't know how it comes. Can anybody help me? Thanks!

A: 

Already solved. It's the left space for GridView.

Set screen wide is totalX. gridView node wide is deltaX, grid count is n, then the unknown space is: totalX - deltaX*n.

But is there any api to avoid this space?

Henry Sou