Caike Karibean
Caike Karibean

Reputation: 51

image view size in splash-screen

I'm creating a splash screen for my application but i have a problem: I put the image in drawable does not occupy the entire screen of your smartphone. how to solve?

it's my xml:

  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical" android:layout_width="fill_parent"
     android:layout_height="fill_parent">

     <RelativeLayout android:id="@+id/RelativeLayout01"
      android:layout_height="fill_parent"
      android:layout_width="fill_parent"
      android:gravity="fill"
      android:layout_gravity="center">

           <ImageView android:id="@+id/ImageView01"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:src="@drawable/fundo" />

     </RelativeLayout>


    </LinearLayout>

Upvotes: 1

Views: 1392

Answers (1)

C. Leung
C. Leung

Reputation: 6318

add android:scaleType="fitXY" to ImageView

Upvotes: 4

Related Questions