PagerAdapter実装WIP

This commit is contained in:
r-ca 2024-01-28 12:35:16 +09:00
parent adb60b7fb2
commit bd1ea74c4c
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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;
}
}