public override void AddFocusables(IList <View> views, FocusSearchDirection direction, FocusablesFlags focusableMode) { View focusableSourceScreen = null; if (mCurrentScreen >= 0 && mCurrentScreen < GetScreenCount()) { focusableSourceScreen = GetScreenAt(mCurrentScreen); } if (direction == FocusSearchDirection.Left) { if (mCurrentScreen > 0) { focusableSourceScreen = GetScreenAt(mCurrentScreen - 1); } } else if (direction == FocusSearchDirection.Right) { if (mCurrentScreen < GetScreenCount() - 1) { focusableSourceScreen = GetScreenAt(mCurrentScreen + 1); } } if (focusableSourceScreen != null) { focusableSourceScreen.AddFocusables(views, direction, focusableMode); } }
public override void AddFocusables (IList<View> views, FocusSearchDirection direction, FocusablesFlags focusableMode) { View focusableSourceScreen = null; if (mCurrentScreen >= 0 && mCurrentScreen < GetScreenCount()) { focusableSourceScreen = GetScreenAt(mCurrentScreen); } if (direction == FocusSearchDirection.Left) { if (mCurrentScreen > 0) { focusableSourceScreen = GetScreenAt(mCurrentScreen - 1); } } else if (direction == FocusSearchDirection.Right) { if (mCurrentScreen < GetScreenCount() - 1) { focusableSourceScreen = GetScreenAt(mCurrentScreen + 1); } } if (focusableSourceScreen != null) { focusableSourceScreen.AddFocusables(views, direction, focusableMode); } }