刚加载出来时,根本就不能看!难怪没人怎么去用PagerTabStrip和PagerTitleStrip!
2015-01-04
我试了一下静态加载fragemnt的情况下,用setArguments()方法来传值,然后抛了fragment is already active异常!
然后看了一下setArguments()的注解:
其中有一句:This can only be called before the fragment has been attached to its activity;
原来只能在onAttach()之前调用!好吧!看来fragment静态加载,得通过调用fragemnt的自定义public的方法了!
然后看了一下setArguments()的注解:
其中有一句:This can only be called before the fragment has been attached to its activity;
原来只能在onAttach()之前调用!好吧!看来fragment静态加载,得通过调用fragemnt的自定义public的方法了!
2015-01-04