I would like to create my own version of custom ViewPager2 view from extending from the original Viewpager2, but just had a hard time doing it. I get errors such as
Cannot inherit from final 'androidx.viewpager2.widget.ViewPager2'
Is there a better way to extend from a Viewpager2 so that I could add cusotm functionality?