这是setContentView()
setContentView(R.layout.game_activity); // "mainactivity" layout
这是在game_activity布局中:
<FrameLayout
android:id="@+id/containerFrame"
android:layout_width="match_parent"
...
这是在R.java
public static final class id {
public static final int containerFrame=0x7f0a0004;
public static final int gridFragment=0x7f0a0005;
...
仍在:
09-09 14:55:12.721: E/AndroidRuntime(1972): java.lang.IllegalArgumentException:
No view found for id 0x7f0a0004 for fragment BlancFragment{41048548 #2 id=0x7f0a0004}
我在这里缺少什么?