在mainActivity中
List<Fragment> fragments = new ArrayList<>();
url = new ArrayList<>();
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=d88edfe6fe2e3cf8f0b10dc7ded91f0e×tamp=1530932284&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=554644c0cc70e64757bfdfe8512f90c6&mid=&type=2&signature=7798327cfd70931d564eda4cd63e2501ec595cf5&version=3.6.8.9");
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=3b1ab32e73ed311b02cc7107f143bdd3×tamp=1530932696&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=bf40d1cbb2ba9fdad19821fc140fa50c&mid=&type=1&signature=4e64ff59d04fd7f86cb4ca5b998dcd4dd4674f13&version=3.6.8.9");
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=659d0cdc84cac152d8343a1d03999bb5×tamp=1530932783&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=2f254e66097fd653a5ca4cfdb33be358&mid=&type=6&signature=4da18bb5ba4875b7bb4f75a791758637fe617314&version=3.6.8.9");
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=400ab63f84c83d88d4c473418e57d716×tamp=1530932922&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=1dc3a89d0d440ba31729b0ba74b93a33&mid=&type=3&signature=dbc81692f2c2d346111fbadb68e7d30715eb7496&version=3.6.8.9");
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=92b972dfaec228827bc2bc4c539d519a×tamp=1530932982&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=4042483f5c2c4015e2a6abd47aa76b6f&mid=&type=4&signature=fb232e159366146c35db86bf90b213141e2ed488&version=3.6.8.9");
url.add("https://api.dyhoa.com/dapi/v4/bbs/articleList?sign=d075634cdff965d54987756f798b6a9f×tamp=1530932982&os=1501&phone=&nextPage=1&terminal=1601&pageSize=20&nonceStr=4042483f5c2c4015e2a6abd47aa76b6f&mid=&type=4&signature=fb232e159366146c35db86bf90b213141e2ed488&version=3.6.8.9");
for (int i = 0; i < url.size(); i++) {
fragments.add(Fragment1.newInstance(url.get(i), ""));
}
复用的fragment中
IPresenter iPresenter = new IPresenter(this);
iPresenter.getData(mParam1);//直接用参数1 fragme必须是完整版的