Code example for FrameLayout

Methods: requestFocus

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