This commit is contained in:
jinyuera
2021-03-03 19:03:45 +08:00
parent 3094caa875
commit 25baefb313
5 changed files with 21 additions and 19 deletions

View File

@@ -89,11 +89,11 @@ public class HistoryRecordActivity extends BaseActivity<LayoutHistoryRecordBindi
});
strings = new String[2];
strings[0] = "说说";
strings[1] = "商品";
// strings[1] = "商品";
fragments = new ArrayList<>();
fragments.add(HistoryRecordFragment.newInstance(1, userId,0,getIntent().getIntExtra("dataType",0)));
fragments.add(HistoryRecordFragment.newInstance(2, userId,0,getIntent().getIntExtra("dataType",0)));
// fragments.add(HistoryRecordFragment.newInstance(2, userId,0,getIntent().getIntExtra("dataType",0)));
MyViewPagerAdapter myViewPagerAdapter = new MyViewPagerAdapter(getSupportFragmentManager());
mDataBinding.fl.setAdapter(myViewPagerAdapter);
mDataBinding.tb.setupWithViewPager(mDataBinding.fl);

View File

@@ -77,7 +77,7 @@ public class LikeFragment extends BaseFragment<FragmentLikeBinding> {
strings = new String[2];
strings[0] = "说说";
strings[1] = "商品";
// strings[1] = "商品";
fragments = new ArrayList<>();
RegisterUser user =
Config.getInstance(getActivity()).getUser();
@@ -89,7 +89,7 @@ public class LikeFragment extends BaseFragment<FragmentLikeBinding> {
}
fragments.add(HistoryRecordFragment.newInstance(1, userId, 0, 3));
fragments.add(HistoryRecordFragment.newInstance(2, userId, 0, 3));
// fragments.add(HistoryRecordFragment.newInstance(2, userId, 0, 3));
MyViewPagerAdapter myViewPagerAdapter = new MyViewPagerAdapter(getChildFragmentManager());
mDataBinding.fl.setAdapter(myViewPagerAdapter);
mDataBinding.tb.setupWithViewPager(mDataBinding.fl);