MainActivity中动态加载
MyFragment4 frag4 = new MyFragment4(); beginTransaction.replace(R.id.layout, frag4);
老师,我用beginTransaction.add(R.id.layout,frag4);为什么不好使呢?之前我只添加了MyFragment3的
MyFragment4 frag4 = new MyFragment4(); beginTransaction.replace(R.id.layout, frag4);
老师,我用beginTransaction.add(R.id.layout,frag4);为什么不好使呢?之前我只添加了MyFragment3的
2016-01-22
举报