本来就是把fragment写死在activity的xml模板里面,结果报了这个错误, Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administrator.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #0: Binary XM,,下面找到了解决方法
[email protected] must implement OnFragmentInteractionListener
Mainactivity必须实现OnFragmentInteractionListener这个接口
原文地址:https://www.cnblogs.com/norm/p/8137507.html
时间: 2024-10-10 04:50:19