From bd1ea74c4c72b0f8aa077d365b4e1d8201e48a59 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 12:35:16 +0900 Subject: [PATCH] =?UTF-8?q?PagerAdapter=E5=AE=9F=E8=A3=85WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../viewer/ViewerViewPagerAdapter.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerViewPagerAdapter.java diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerViewPagerAdapter.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerViewPagerAdapter.java new file mode 100644 index 00000000..5de859c6 --- /dev/null +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerViewPagerAdapter.java @@ -0,0 +1,26 @@ +package one.nem.lacerta.component.viewer; + +import androidx.annotation.NonNull; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentPagerAdapter; +import androidx.viewpager2.adapter.FragmentStateAdapter; + +public class ViewerViewPagerAdapter extends FragmentStateAdapter { + + public ViewerViewPagerAdapter(@NonNull FragmentActivity fragmentActivity) { + super(fragmentActivity); + } + + @NonNull + @Override + public Fragment createFragment(int position) { + return null; + } + + @Override + public int getItemCount() { + return 0; + } +}