Reputation: 3
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:horizontalSpacing="0dp"
android:numColumns="2"
android:stretchMode="columnWidth"
android:verticalSpacing="0dp" />
</FrameLayout>
How to add scroll view in this layout i have to add more pictures in this layout bt its not showing more than 6 images
Upvotes: 0
Views: 739
Reputation: 2064
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:horizontalSpacing="0dp"
android:numColumns="2"
android:stretchMode="columnWidth"
android:verticalSpacing="0dp" />
</ScrollView>
</FrameLayout>
Try this.
Upvotes: 1
Reputation: 3415
Somewhat unclear question but I guess you want this?
<FrameLayout>
<ScrollView>
<GridView>
</GridView>
</ScrollView>
</FrameLayout>
Upvotes: 0