【发布时间】:2014-01-14 23:43:14
【问题描述】:
我正在使用 xml 可绘制对象:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/splashscreen"
android:tileMode="disabled" android:gravity="top" >
</bitmap>
这是我在布局中的 imageView:
<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">
<ImageView
android:id="@+id/splash_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
/>
</RelativeLayout>
但无论我做什么,它都不适合屏幕,并且只作为一个小图像出现在中心。我哪里错了?
【问题讨论】: