I have made an application form in android with 3 sections using tabs and viewpager.
According to my requirement tabs must not swipe manually it should be swiped only in next button click event which has some validation to check fields and decide weather it should go to next tab or not? That is have achieved by using nonswipeableview and making blank onTabSelected listioner
but the problem is when I touch to other tab the fragment does not change but that new tab got selected. how to make that tab not to be selected when anyone touch to that tab? for example if anyone select attatchment tab that tab got selected with blue bar indicator and the fragment remain same. fragment remain same is ok but that attachment tab should not be selected in touch event manually, that I want to handle programatically.
How to disable tab selected indicator on touch of tab?