1
아래에 ImageView 및 GridView가있는 레이아웃이 있습니다. ImageView와 GridView의 수직 스크롤을 함께 구현해야합니다. ScrollView는 GridView 자식 항목을 가질 수 없기 때문에 ScrollView를 사용하려고하지만 아무 결과도 표시하지 않습니다.ImageView 및 GridView 세로 스크롤
이 내 레이아웃의 코드입니다 : 나는 실제로 줄을 한 번에 두 개 이상의 아이를 가질 수 없습니다 스크롤 해결하기 위해 노력했다
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:layout_width="fill_parent"
android:layout_height="@dimen/widgets_wallpaper_text_background_height"
android:scaleType="fitXY"
android:src="@drawable/wallpaper_widgets_under_text" />
<GridView
android:id="@+id/menu_widgets_grid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="@dimen/widget_wallpaper_grid_margine_top"
android:cacheColorHint="#00000000"
android:horizontalSpacing="@dimen/widgets_wallpaper_row_spaces"
android:listSelector="@null"
android:numColumns="3"
android:scrollbars="none" />
</LinearLayout>