2012-05-25 34 views
0

我正在爲我的應用程序創建啓動畫面,但我遇到了一個問題: 我將圖像放在drawable中並不佔用智能手機的整個屏幕。 如何解決?啓動畫面中的圖像視圖大小

這是我的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> 

回答

2

添加android:scaleType="fitXY"ImageView

+0

THK非常多的兄弟! –