我粘贴了下面的代码:问题是图像拉伸。。。。。。
<RelativeLayout 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"
tools:context=".SplashScreen"
android:background="@color/black" >
<ImageView
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:src="@drawable/splashscreen"/>
</RelativeLayout>
您应该使用9页的图像。您可以从9路径生成器生成9个补丁图像。。
之后修改你的图像像一样查看
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:src="@drawable/splashscreen"/>
使用wrap_content而不是match_parent:
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/splashscreen"/>