Code example for FrameLayout

Methods: requestFocus

0
 
		mTabWidget.setTabSelectionListener(new SlidingTabWidget.OnTabSelectionChanged() {
			public void onTabSelectionChanged(int tabIndex, boolean clicked) {
				setCurrentTab(tabIndex);
				if (clicked) {
					mTabContent.requestFocus(View.FOCUS_FORWARD);
				} 
			} 
		}); 
 
		mTabContent = (FrameLayout) findViewById(R.id.slidingtabcontent);
		if (mTabContent == null) {
			throw new RuntimeException("Your SlidingTabHost must have a FrameLayout whose id attribute is 'android.R.id.tabcontent'");
		} 
		mTabWidget.setTabContent(mTabContent);
		 
	} 
 
	/** 
	 * If you are using {@link SlidingTabSpec#setContent(android.content.Intent)}, this 
	 * must be called since the activityGroup is needed to launch the local