KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Hi friends, I am using GridView inside a ScrollView for displaying images. In the GridView I have 16 images which were dynamically added, but the ScrollView does not display all 16 images (see screenshot). I want the ScrollView to display the whole GridView , does anybody know how I can fix this? Thanks all. xml file: <?xml version="1.0" encoding="utf-8"?> <merge android:layout_width="wrap_content" android:layout_height="340dip" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="320dip" android:orientation="vertical" android:background="@color/black"> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scrollview" android:layout_width="fill_parent" android:layout_height="500dip" android:background="#ffffff" android:paddingTop="10dip" android:paddingLeft="5dip" android:layout_weight="1"> <GridView android:id="@+id/jr_lookbook_grid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:numColumns="4" android:verticalSpacing="10dp" android:horizontalSpacing="10dp" android:columnWidth="90dp" android:stretchMode="columnWidth" android:adjustViewBounds="true" android:background="@drawable/shape" android:gravity="center" android:layout_weight="1"/> </ScrollView> <Button android:id="@+id/click" android:background="@android:color/transparent" android:text="Load M
Tags (comma-separated)
Save Edits
Cancel