対応 WIP
This commit is contained in:
parent
0579a1b45a
commit
ac29832038
|
@ -67,22 +67,13 @@ public class WalletParentWrapperFragment extends Fragment {
|
||||||
TabAdapter tabAdapter = new TabAdapter(requireActivity());
|
TabAdapter tabAdapter = new TabAdapter(requireActivity());
|
||||||
|
|
||||||
// デバッグ用
|
// デバッグ用
|
||||||
List<ChildModel> childList = new ArrayList<>();
|
List<ChildModel> childList = childData.getChildListDirect().join();
|
||||||
ChildModel child = new ChildModel();
|
|
||||||
child.setId("1");
|
|
||||||
child.setName("Child 1");
|
|
||||||
childList.add(child);
|
|
||||||
ChildModel child2 = new ChildModel();
|
|
||||||
child2.setId("2");
|
|
||||||
child2.setName("Child 2");
|
|
||||||
childList.add(child2);
|
|
||||||
|
|
||||||
tabAdapter.setChildList(childList);
|
tabAdapter.setChildList(childList);
|
||||||
|
|
||||||
viewPager.setAdapter(tabAdapter);
|
viewPager.setAdapter(tabAdapter);
|
||||||
|
|
||||||
new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> {
|
new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> {
|
||||||
tab.setText("Child " + (position + 1));
|
tab.setText(childList.get(position).getName());
|
||||||
}).attach();
|
}).attach();
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,8 +96,7 @@ public class WalletParentWrapperFragment extends Fragment {
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Fragment createFragment(int position) {
|
public Fragment createFragment(int position) {
|
||||||
// デバッグ用
|
return WalletContentFragment.newInstance(childList.get(position).getId());
|
||||||
return WalletContentFragment.newInstance();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user