禁止tab切换

什么时候需要这种情况呢  当你遇上了你就知道了

int numberOfTabs = tabHost.getTabWidget().getChildCount(); for (int t = 0; t < numberOfTabs; t++) {     tabHost.getTabWidget().getChildAt(t).setOnTouchListener(new View.OnTouchListener()     {         @Override         public boolean onTouch(View v, MotionEvent event)         {               return true;     }); }

你可能感兴趣的:(tab)