Android Question Error on TabStrip (Deleting/Creating Tab)

scsjc

Well-Known Member
Licensed User
I am trying to find out where I have a problem, sometimes I get an error when deleting and adding TAB, can someone tell me any clue with this message?

B4X:
java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 9, found: 10 Pager id: ffffffff Pager class: class android.support.v4.view.ViewPager Problematic adapter: class anywheresoftware.b4a.objects.TabStripViewPager$B4APageAdapter
    at android.support.v4.view.ViewPager.populate(ViewPager.java:1143)
    at android.support.v4.view.ViewPager.populate(ViewPager.java:1092)
    at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1622)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChild(ViewGroup.java:6899)
    at android.view.ViewGroup.measureChildren(ViewGroup.java:6876)
    at anywheresoftware.b4a.BALayout.onMeasure(BALayout.java:64)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChild(ViewGroup.java:6899)
    at android.view.ViewGroup.measureChildren(ViewGroup.java:6876)
    at anywheresoftware.b4a.BALayout.onMeasure(BALayout.java:64)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChild(ViewGroup.java:6899)
    at android.view.ViewGroup.measureChildren(ViewGroup.java:6876)
    at anywheresoftware.b4a.BALayout.onMeasure(BALayout.java:64)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChild(ViewGroup.java:6899)
    at android.view.ViewGroup.measureChildren(ViewGroup.java:6876)
    at anywheresoftware.b4a.BALayout.onMeasure(BALayout.java:64)
    at anywheresoftware.b4a.objects.IME$ExtendedBALayout.onMeasure(IME.java:139)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:143)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
    at android.view.View.measure(View.java:23279)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at com.android.internal.policy.DecorView.onMeasure(DecorView.java:898)
 

scsjc

Well-Known Member
Licensed User
to solve a problem without code, is very hard.
I know, ... I'm starting the code again, the truth is that I tried to adapt a complicated code that had coming from DSTabLayout and I almost got it, but it's better to start from 0. to see if I solve it
Thank you
 
Top