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 9061299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:26:53+00:00 2026-06-16T15:26:53+00:00

the image in my gridview isn’t stretch. how can I stretch it? This is

  • 0

the image in my gridview isn’t stretch.

how can I stretch it?

This is mine.

enter image description here

This is what i want

enter image description here

Gridview

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <LinearLayout
            android:id="@+id/layout2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_base"
            android:orientation="vertical" >

            <com.camitss.mcolle.ScrollableGridView
                android:id="@+id/grid_all"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:columnWidth="110dp"
                android:gravity="center"
                android:horizontalSpacing="10dp"
                android:numColumns="auto_fit"
                android:padding="5dp"
                android:verticalSpacing="10dp" />
        </LinearLayout>
    </LinearLayout>
</ScrollView>

GridView Item

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/card_base"
android:orientation="vertical" >

<!-- Green Image -->
<ImageView
    android:id="@+id/category_card"
    android:layout_width="105dp"
    android:layout_height="105dp"
    android:layout_centerInParent="true" />

<!-- Picture -->
<ImageView
    android:id="@+id/imageView1"
    android:layout_width="95dp"
    android:layout_height="95dp"
    android:layout_centerInParent="true" />

  • 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-06-16T15:26:55+00:00Added an answer on June 16, 2026 at 3:26 pm

    Try this

    <!-- Picture -->
    
        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="95dp"
            android:layout_height="95dp"
            android:layout_centerInParent="true"
            android:scaleType="fitXY"
            android:adjustViewBounds="true" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how can we use sorting image inside GridView header while
In this following gridview image.png images are taken from the drawable folder.Now I want
Hi developing an image album using the android gallery and gridview tutorials I want
I want to create Custom GridView like this attached below image. Grid item not
i need to set image as background in android gridview. I have code which
I want to display thumbnail image in a gridview from file location. How to
I have gridview in which i have check box control Like this image. Problem
I have an ASP.Net GridView and I want to include an Image and a
I want to add image to GridView cell with below code but doesn't show
I have an image field in a gridview as this: <asp:ImageField DataImageUrlField=PictureID DataImageUrlFormatString=~/UploadedImages/{0}.jpg HeaderText=Image

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.