我目前正在处理带有图像视图的启动画面。问题是当显示启动画面时,图像周围有一个白色边框。这样启动画面就会显示带有白色边框的图像。我想完全删除白色边框。有没有人知道这样做的原因或任何建议?
这是我的xml代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<View android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView android:id="@+id/ImageViewSplash"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:contentDescription="@string/splashImageContentDescription" />
</RelativeLayout>