2013-01-06 5 views
0

내 안드로이드 앱에 스플래시 화면이 있습니다.이 화면은 png 이미지로 채워집니다. 그러나 PNG 이미지가 전체 화면으로 채워지지 않고 옆에 공백이 표시됩니다.PNG 이미지가 전체 화면 크기로 조정되지 않음

나는 이것과 AVD를보고있다. 여기

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 

<ImageView 
android:src="@drawable/splash" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"></ImageView> 

</LinearLayout> 

내 안드로이드 매니페스트 코드의 추출물 : 여기 VIEW OF MY SPLASHSCREEN

내 XML 코드 : 여기

내가 볼 것입니다

<uses-sdk 
    android:minSdkVersion="5" 
    android:targetSdkVersion="17" /> 

<supports-screens 
android:resizeable="true" 
android:smallScreens="true" 
android:normalScreens="true" 
android:largeScreens="true" 
android:anyDensity="true" /> 


<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
      <activity 
     android:name="com.shaadcorp.wazaifapp.MainMenu" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name="ButtonMenu" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="com.shaadcorp.wazaifapp.CLEARSCREEN" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name="wazeefa" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="com.shaadcorp.wazaifapp.WAZEEFA" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name="durood" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="com.shaadcorp.wazaifapp.DUROOD" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
     </intent-filter> 
    </activity> 

</application> 

</manifest> 

하시기 바랍니다 할 수있는 하나 도움? 나는 png 자체의 dimesions를 increse하려고 노력했지만 이것은 별 차이가 없다.

+0

ImageView 정의에 scaleType 추가 --http : //developer.android.com/reference/android/widget/ImageView.ScaleType.html – Simon

답변

2

android:scaleType 속성을 ImageView에 추가해야합니다. 아마 centerCrop이 당신이 원하는 것입니다.

<ImageView 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:scaleType="centerCrop" 
    android:src="@drawable/splash" /> 
관련 문제