Skip to content

Tab adapter : FragmentStateAdapter (ViewPager2) doesn't work with MvpFragment #270

@GramLun

Description

@GramLun

I'm trying to create TabAdapter class that inherits FragmentStateAdapter. So in function createFragment I need to return my framents which inherits MvpFragment, but it says:
image
And if function will inherits Fragment IDE says "Type mismatch" under my custom fragments:
image
Maybe I could use other class (not FragmentStateAdapter) which compatible with Moxy.
I dont know how to fix it, pls help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions