public void OnPageSelected(int position) { // Unfortunately when TabHost changes the current tab, it kindly // also takes care of putting focus on it when not in touch mode. // The jerk. // This hack tries to prevent this from pulling focus out of our // ViewPager. TabWidget widget = mTabHost.GetTabWidget(); int oldFocusability = widget.GetDescendantFocusability(); widget.SetDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); mTabHost.SetCurrentTab(position); widget.SetDescendantFocusability(oldFocusability); }