set select tab in tablayout without viewpager when tabmode is scrollable


hello i am using a tablayout without viewpager.
when tabmode tablayout is scrollable and i select a special tab
tablayout don’t scroll on that position but it selected.

this is my code:
tabLayout.getTabAt(5).select();