简单的碎片布局也错
aide吧
全部回复
仅看楼主
level 8
泡沫漂云 楼主
Unable to start activity ComponentInfo{com.mycompany.suipian/com.mycompany.suipian.MainActivity}: android.view.InflateException: Binary XML file line
#8: Binary XML file line #
8: Error inflating class fragment
04-02 23:49:47.772 12643 12643 E AndroidRuntime com.mycompany.suipian at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)
2017年04月02日 16点04分 1
level 8
泡沫漂云 楼主
难道删楼了
2017年04月02日 16点04分 3
level 8
泡沫漂云 楼主
果然2楼没了
2017年04月02日 16点04分 4
level 8
泡沫漂云 楼主
2017年04月02日 16点04分 5
level 12
路过
2017年04月02日 22点04分 7
level 12
……
2017年04月02日 23点04分 8
level 9
fragment是这样用的嘛
2017年04月02日 23点04分 9
初次学习
2017年04月03日 01点04分
@泡沫漂云 照着书上打的
2017年04月03日 01点04分
在Activity怎么写,初次学习碎片
2017年04月03日 01点04分
@泡沫漂云 。。。。。。
2017年04月03日 04点04分
level 9
。。不需要在布局里写fragment吧 你在activity里直接把原布局作为了fragment[滑稽]
2017年04月03日 01点04分 10
level 13
FragmentManager 更好,不用再布局里谢fragment
2017年04月03日 23点04分 11
能给个示例吗
2017年04月04日 14点04分
level 9
哇,第二行里面的…还以为是我代码写错了…请问楼主解决了吗
2017年11月01日 07点11分 12
1