コード例 #1
0
ファイル: ags.java プロジェクト: nhnam/ZaloRE
 public void o(int paramInt) {
   TabWidget localTabWidget = this.Rk.getTabWidget();
   int i = localTabWidget.getDescendantFocusability();
   localTabWidget.setDescendantFocusability(393216);
   this.Rk.setCurrentTab(paramInt);
   localTabWidget.setDescendantFocusability(i);
 }
コード例 #2
0
 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);
 }