Code example for FrameLayout

Methods: dispatchKeyEvent, requestFocus

0
							return true; 
					} 
				} else { 
					return true; 
				} 
				mTabContent.requestFocus(View.FOCUS_FORWARD);
				return mTabContent.dispatchKeyEvent(event);
			} 
		}); 
 
		// apply the styled attributes 
		TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SlidingTabWidget, defStyle, 0);
		mSeparationWidth = a.getInt(R.styleable.SlidingTabWidget_separationWidth, 0);
		if (mSeparationWidth == 0) {
			mSeparationWidth = (int)(75 * sScale);
		} 
		a.recycle();
	} 
 
	/** 
	 * Adds a new tab and sets the correct paddings defined by the