gongwen / MarqueeViewLibrary

一个帮您快速实现跑马灯效果的library
2.36k stars 313 forks source link

在fragment中使用报marqueeFactory空指针异常 #14

Closed dcl1994 closed 7 years ago

dcl1994 commented 7 years ago

//文字向上翻转 MarqueeFactory<TextView,String> marqueeFactory=new NoticeMF(getActivity()); //MarqueeView设置Factory marqueeView.setMarqueeFactory(marqueeFactory); //开始翻转 marqueeView.startFlipping();

是不是不能在fragment中使用这个控件?

gongwen commented 7 years ago

是可以在fragment中使用的,能提供报错的具体日志嘛