why the image keep a white space from the bottom and the top?

user3628116

what i have is an activity and i add an images to it, and i make it as background for the activity with the following xml :

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".SplashScreen">

    <ImageView
        android:id="@+id/imageView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:src="@drawable/splash5" />     
</LinearLayout>

and the image size is : 550 px for width and 800 px for height

enter image description here

and as you can see from the image you can see a white space in top and in bottom .. why this is happening even it's fill parent for width and height?

Ravind Maurya

use like this:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".SplashScreen">

    <ImageView
        android:id="@+id/imageView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:src="@drawable/splash5"
         android:scaleType="fitXY"

      />     
</LinearLayout>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ImageView shows white space at top and bottom of image

From Dev

Why is there white space on the top and bottom of a link?

From Dev

iAd leaving white space at top and bottom of iAd

From Dev

A white place from top to the bottom

From Dev

A white place from top to the bottom

From Dev

Why my Image updates from top to bottom row by row

From Dev

How to prevent white space "bounce" after scrolling to the top of the page and the bottom

From Dev

Creating top div adds space at bottom why?

From Dev

Fading an Image from Top to Bottom

From Dev

ScrollView white space at bottom

From Dev

Space between dots and animate from top to bottom

From Dev

Why is there a few pixels of white space margin at the bottom of position absolute divs

From Dev

Keep white space with htmlentities

From Dev

How to keep white space as

From Dev

White space at top of page

From Dev

Remove the white space frame from the splash image

From Dev

How to remove white-space from the bottom of footer

From Dev

White space/ bar at the bottom of the page

From Dev

TCPDF - White space at bottom of page

From Dev

CSS White Space At Bottom of Page

From Dev

White space at the bottom of my website

From Dev

Unwanted white space at the bottom of page

From Dev

PageViewer white borders on top and bottom

From Dev

Why is UIScrollView leaving space on top and does not scroll to the bottom

From Dev

Android Custom Action Bar - want to get rid of top and bottom white space

From Dev

White space under image

From Dev

how to remove white space on the top

From Dev

White space on top of my webpage

From Dev

Remove all white space from Image with Base64 and Cors

Related Related

HotTag

Archive