2015-11-06 55 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

请努力,请检查您的图像有白色边框? –

相关问题