Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6741973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:47:17+00:00 2026-05-26T11:47:17+00:00

I have make a gridview in which i have added images . But my

  • 0

I have make a gridview in which i have added images . But my problem is that it is showing very small size of gridview with only 3 images in it like in the picture and i want to show 9 images in it.

enter image description heres

But i want that the gridview size to be fill parent that is below photos and above bottom scroll bar.

I am using the following xml for it

                <RelativeLayout android:layout_height="fill_parent"
        android:layout_width="fill_parent" android:layout_above="@+id/LinearLayouToolbar"
        android:layout_below="@+id/linearLayout3">
        <ScrollView android:layout_height="200dp"
            android:layout_width="320dp" android:id="@+id/scrollView1"
            android:layout_alignParentTop="true" android:layout_alignParentLeft="true">



            <GridView android:horizontalSpacing="10dp"
                android:columnWidth="80dp" android:verticalSpacing="20dp"
                android:stretchMode="columnWidth" android:padding="10dp"
                android:id="@+id/GridView01" android:fastScrollEnabled="true"
                android:layout_gravity="fill|center" android:numColumns="auto_fit"
                android:layout_marginBottom="0dp" android:layout_width="wrap_content"
                android:layout_height="wrap_content"></GridView>
        </ScrollView>
    </RelativeLayout>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:47:18+00:00Added an answer on May 26, 2026 at 11:47 am

    Correct your scroll view width and height as:

      <ScrollView android:layout_height="fill_parent"
                android:layout_width="fill_parent" android:id="@+id/scrollView1"
                android:layout_alignParentTop="true" android:layout_alignParentLeft="true">
    

    Otherwise remove the ScrollView, just give GridView inside the RelativeLayout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to make a page that look like painting below, but: field 1
I have a gridview which is like <asp:TemplateField HeaderText=File Name SortExpression=FileName> <ItemTemplate> <asp:LinkButton ID=lnkname
I have a page that houses an asp GridView and I would like to
I have make one app in which i am display data in custom gridview
I have make a messaging system in which user can send messages to each
Using this sample : I have make my own Fragment that holds tabhost and
I have to make a horizontal month slider which will have two pointers which
I have to make a something like a Gantt Diagram. This is what I
I have to make a conditional in ash, that depends on result of two
How to make Form Transperent in windows c# ? I have a GridView in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.