<HorizontalScrollView
android:id="@+id/hsView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none" >
[color=red] <FrameLayout[/color] android:layout_width="fill_parent"
android:layout_height="match_parent">
<LinearLayout android:id="@+id/single_line_for_gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<GridView
android:id="@+id/grid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdgeLength="20dip"
android:layout_marginTop="50dip"
/>
</LinearLayout>
[color=red] </FrameLayout> [/color]
</HorizontalScrollView>
android:id="@+id/hsView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none" >
[color=red] <FrameLayout[/color] android:layout_width="fill_parent"
android:layout_height="match_parent">
<LinearLayout android:id="@+id/single_line_for_gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<GridView
android:id="@+id/grid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdgeLength="20dip"
android:layout_marginTop="50dip"
/>
</LinearLayout>
[color=red] </FrameLayout> [/color]
</HorizontalScrollView>