private void SetDownView(MotionEvent e) { _childCount = ChildCount; _listViewCoords = new int[2]; GetLocationOnScreen(_listViewCoords); int x = (int)e.RawX - _listViewCoords[0]; int y = (int)e.RawY - _listViewCoords[1]; FlabbyLayout Child; for (int i = 0; i < _childCount; i++) { Child = (FlabbyLayout)GetChildAt(i); Child.GetHitRect(_rect); if (_rect.Contains(x, y)) { _downView = Child; if (_downView != null) { _downView.SetAsSelected(true); } _downBelowView = (FlabbyLayout)GetChildAt(i + 1); } else { Child.SetAsSelected(false); } } }
private void SetDownView(MotionEvent e) { _childCount = ChildCount; _listViewCoords = new int[2]; GetLocationOnScreen(_listViewCoords); int x = (int) e.RawX - _listViewCoords[0]; int y = (int) e.RawY - _listViewCoords[1]; FlabbyLayout Child; for (int i = 0; i < _childCount; i++) { Child = (FlabbyLayout) GetChildAt(i); Child.GetHitRect(_rect); if (_rect.Contains(x, y)) { _downView = Child; if(_downView!=null) { _downView.SetAsSelected(true); } _downBelowView = (FlabbyLayout) GetChildAt(i + 1); } else { Child.SetAsSelected(false); } } }