在我的一个布局中,我有一个 textView 和一个 imageView。textView 工作正常,但是当我添加 imageView 时,应用程序在调用该布局时会做一些奇怪的废话(当它被调用时,应用程序冻结几秒钟,然后屏幕变黑一段时间,然后应用程序被放置在后台)。
布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/background">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#87cefa"
android:textSize="20sp"
android:text="Some Text"
android:gravity="center"
/>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/splashscreen"
android:scaleType="fitXY"
/>
</LinearLayout>
我知道这是 imageview,因为如果我把它拿走,一切都会好起来的。提前致谢!!
日志猫:08-13 19:37:13.483: E/Trace(23530): error opening trace file: No such file or directory (2)
08-13 19:37:13.803: E/SensorManager(23530): thread start
08-13 19:37:14.103: E/(23530): <s3dReadConfigFile:75>: Can't open file for reading
08-13 19:37:14.103: E/(23530): <s3dReadConfigFile:75>: Can't open file for reading
08-13 19:37:24.524: E/dalvikvm(23530): Fatal spin-on-suspend, dumping threads
08-13 19:37:24.574: E/dalvikvm(23530): threadid=1: stuck on threadid=12, giving up
08-13 19:37:24.574: A/libc(23530): Fatal signal 16 (SIGSTKFLT) at 0x00005bea (code=-6), thread 23549 (Thread-946)