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()));
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()));