Android solves the bug of sliding the tab from left to right by pressing the finger
One way to prevent the view of the parent layer from intercepting the touch event is to call getparent() requestDisallowInterceptTouchEvent(true); method.
Once the underlying View receives the touch's action, it calls the method, then the parent View will no longer call onInterceptTouchEvent, nor can it intercept the subsequent action.
Find the tabpageindicator class in the viewpagerindicator project and add the following code
The above is what Xiaobian introduced to you to solve the bug that the finger of the tab slides from left to right in Android. I hope it will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!