Code example for FrameLayout

Methods: dispatchKeyEvent, requestFocus

0
						case KeyEvent.KEYCODE_DPAD_DOWN:
						case KeyEvent.KEYCODE_ENTER:
							return false; 
 
						} 
					mTabContent.requestFocus(View.FOCUS_FORWARD);
					return mTabContent.dispatchKeyEvent(event);
					} 
 
			}; 
 
		mTabWidget.setTabSelectionListener(new TabWidget.OnTabSelectionChanged()
			{ 
				public void onTabSelectionChanged(int tabIndex, boolean clicked) 
					{ 
					setCurrentTab(tabIndex); 
					if(clicked) 
						{ 
						mTabContent.requestFocus(View.FOCUS_FORWARD); 
						} 
					}