Android Question Amir Fragment and TabStrip

asales

Expert
Licensed User
Longtime User
I use this library from @alimanam3386 :
https://www.b4x.com/android/forum/threads/amir_fragment.101189/

There are an example with AHViewer Page.

I tried to modify the example to use TabStrip ViewPager, but I get this error in compile:
B4X:
PagerAdapter.IntoViewPager(TabStrip1,True)
javac 1.8.0_92
src\b4a\example\AFTabStrip\main.java:349: error: incompatible types: TabStripViewPager cannot be converted to ViewPager
mostCurrent._vv2.IntoViewPager((android.support.v4.view.ViewPager)(mostCurrent._tabstrip1),anywheresoftware.b4a.keywords.Common.True);
The signature of the method IntoViewPager is:
B4X:
IntoViewPager(ViewPager As android.support.v4.view.ViewPager, RemoveLastAdapter As Boolean)
Anyone has tried this?
Is possible to use other ViewPager or only the AHViewPager?

Thanks in advance.
 
Top