添加了个XML文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"><com.mingame.threesameline.GameView android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> 切换到Xml的Gaphical layout视图中显示错误:The following classes could not be instantiated: - com.mingame.threesameline.GameView See the Error Log (Window > Show View) for more details. Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
05-04 02:51:53.025: WARN/ActivityManager(52): Activity idle timeout for HistoryRecord{43cd7828 com.mingame.threesameline/.GameActivity}
想请有兴趣的大侠看看程序,把解决方法说一下就行了。应为源程序没有Xml文件布局,加控件的话又会影响程序本身的运行,小弟初学,不知这样的问题如何解决,只想和各位大侠一起探讨学习。对本帖引起的误解深表歉意。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent"><com.mingame.threesameline.GameView
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
切换到Xml的Gaphical layout视图中显示错误:The following classes could not be instantiated:
- com.mingame.threesameline.GameView
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
我已经帮你解决了, 给分吧, 其实给100人民币也太少了....