gdpancheng / LoonAndroid

整个框架式不同于androidannotations,Roboguice等ioc框架,这是一个类似spring的实现方式。在整应用的生命周期中找到切入点,然后对activity的生命周期进行拦截,然后插入自己的功能。
575 stars 348 forks source link

Handler_Inject.injectFragment方法注入导致空指针,什么原因呢? #6

Open SoledadMax opened 9 years ago

SoledadMax commented 9 years ago

View view = inflater.inflate(R.layout.bottom_menu, container,false); bottom_info = (ImageButton)view.findViewById(R.id.bottom_info); bottom_media = (ImageButton)view.findViewById(R.id.bottom_media); bottom_home = (ImageView)view.findViewById(R.id.bottom_home); Handler_Inject.injectFragment(this, view); return view; 2.@InjectLayer(R.layout.activity_home)会在下面这句代码里面出现参数非法的错误 fragmentTransaction.add(R.id.bottomMenu, bottomFragment);

请问这种错误应该怎么解决?

sunfusheng commented 9 years ago

Sorry!