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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:42:53+00:00 2026-06-17T23:42:53+00:00

android the image looks too small on screen, how to scale it to fit

  • 0

android the image looks too small on screen, how to scale it to fit the screen? wrap_content does not seem to work

<RelativeLayout
    android:id="@+id/layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
<ImageView
    android:layout_alignParentTop="true"
    android:layout_marginTop="100dip"
    android:id="@+id/imageview"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:src="@drawable/splash_screen"/>
<ProgressBar
    android:layout_alignParentBottom="true"
    android:layout_marginBottom="20dip"
    android:id="@+id/progressbar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"/>
</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-06-17T23:42:55+00:00Added an answer on June 17, 2026 at 11:42 pm

    Add the following attribute to your ImageView to get it to scale as you like (will fill the size of your ImageView):

    android:scaleType="fitXY"
    

    I would actually change your width attribute as well. Your final XML could look like this:

    <ImageView
        android:layout_alignParentTop="true"
        android:layout_marginTop="100dip"
        android:id="@+id/imageview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scaleType="fitXY"
        android:src="@drawable/splash_screen"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to automatically switch the background in layout android:background=@drawable/image> I have two pictures I
Screen layout: parent main background image and another image as table image is child.
I'm building my first Android image, i noticed that compiling a new kernel is
I've setup an Android-x86 image (4.0-RC1-eeepc) in VirtualBox on a Dell Latitude D820. This
Im using Bluetooth to transfer image from Android camera.callback to PC. on windows side
I need to apply tint effect on image in Android . But the tint
I am basically tring to upload image from android and upload it to php
I've the following code for implementing zoom image in Android: public class MyActivity extends
I have to apply a spherical filter on a image in android, I have
Assuming I have an ImageView defined as: <ImageView android:id=@+id/my_image_view android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/my_image_view_background /> With

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.