谁能告诉我为什么下面的代码不工作?该图像根本没有出现。Android ImageView不显示图像?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
<ImageView
android:src="@drawable/splashscreen"
android:scaleType="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
RelativeLayout没有定位..... – 2015-01-06 04:06:44
如果你在Android Api 21或更低版本运行应用程序,它是一个常见的问题。主要是因为你使用高分辨率,大尺寸的图像。我建议你调整大小,缩小图像。 – emiraslan 2017-03-30 15:54:43