PagerSlidingTabStrip icon indicating copy to clipboard operation
PagerSlidingTabStrip copied to clipboard

scrollToChild() - FATAL EXCEPTION: main PID: 1809 java.lang.NullPointerException

Open JosephPrince opened this issue 9 years ago • 1 comments

I was making dynamic tabs, ie tab size and names varies each time, it is working fine for first couple of time after that scrollToChild() - FATAL EXCEPTION: main PID: 1809 java.lang.NullPointerException Occurs on line scrollToChild(position, (int) (positionOffset * tabsContainer.getChildAt(position).getWidth()));

JosephPrince avatar Feb 24 '16 11:02 JosephPrince

I've had the same problem as you.I solved it. 1、tab.notifyDataSetChanged(); 2、adapter.notifyDataSetChanged();

zuoguodang avatar Jun 10 '16 04:06 zuoguodang