如何在 android 中删除启动画面中的白色底部边框
How to remove white bottom border in splash screen in android
我想删除启动画面中的白色底部边框。我改变了很多相对于线性的布局,但没有什么 changed.Anyone 可以帮助我如何删除这个白色边框:
我的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>
我的形象:-
<?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>
试试这个,
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>
我想删除启动画面中的白色底部边框。我改变了很多相对于线性的布局,但没有什么 changed.Anyone 可以帮助我如何删除这个白色边框:
我的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>
我的形象:-
<?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>
试试这个,
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>