private void adaptTabLayoutEnableState() {
        if (tabLayout != null) {
            LinearLayout tabStrip = ((LinearLayout) tabLayout.getChildAt(0));
            tabStrip.setEnabled(tabLayoutEnabled);

            for (int i = 0; i < tabStrip.getChildCount(); i++) {
                tabStrip.getChildAt(i).setEnabled(tabLayoutEnabled);
            }
        }
    }
private void adaptTabLayoutEnableState ( ) { if ( tabLayout != null ) { LinearLayout tabStrip = ( ( LinearLayout ) tabLayout . getChildAt ( 0 ) ) ; tabStrip . setEnabled ( tabLayoutEnabled ) ; for ( int i = 0 ; i < tabStrip . getChildCount ( ) ; i ++ ) { tabStrip . getChildAt ( i ) . setEnabled ( tabLayoutEnabled ) ; } } }
Adapts the enable state of the tab layout, which indicates the currently shown fragment.