2015-11-06 90 views
0

我想刪除白色底部邊框在這個啓動畫面。我改變相對多佈局於線性,但沒有changed.Anyone能幫助我,我怎麼刪除此白色邊框:如何刪除閃屏白色底部邊框在android系統

我splash_screen.xml: -

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

<View android:layout_width="match_parent" 
    android:layout_height="match_parent" /> 

<ImageView 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:src="@drawable/a" 
    android:adjustViewBounds="false" 
    android:scaleType="centerCrop" 
    /> </RelativeLayout> 

我的圖像: - enter image description here

+1

設置機器人:scaleType = 「fitXY」。 –

+0

我這樣做,但沒有努力 –

+0

設置背景顏色回到你父母的相對佈局.. –

回答

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

<View android:layout_width="match_parent" 
    android:layout_height="match_parent" /> 

<ImageView 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:src="@drawable/a" 
    android:background="#000000" 
    android:adjustViewBounds="false" 
    android:scaleType="centerCrop" 
    /> </RelativeLayout> 
+0

我試過,但沒有sucess所有的建議,但沒有努力。 –

+0

好的嘗試,現在...更新 –

+0

沒有@sourabh禁止任何努力 –

1

試試這個,

activity_splash.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" 
    android:background="@drawable/splash_screen" > 

</LinearLayout> 
+0

我的結果 –

+0

請努力,請檢查您的圖像有白色邊框? –

相關問題