bool AView.IOnTouchListener.OnTouch(AView v, MotionEvent e) { ((Element.Children.First() as Layout).Children.First() as Label).Text = Issue1942.SuccessString; ViewGroup.ViewTreeObserver.RemoveOnGlobalLayoutListener(this); _gridChild.SetOnTouchListener(null); return(true); }
public virtual Com.Zhy.Adapter.Abslistview.ViewHolder SetOnTouchListener(int viewId , View.IOnTouchListener listener) { Android.Views.View view = GetView <View>(viewId); view.SetOnTouchListener(listener); return(this); }
public MultiTouchHandler(View view, float scaleX, float scaleY) { this.scaleX = scaleX; this.scaleY = scaleY; touchEventPool = new Pool<TouchEvent>(touchEventCreater, 100); view.SetOnTouchListener (this); }
public SingleTouchHandler(View view, float scaleX, float scaleY) { touchEventPool = new Pool<TouchEvent>(new TouchEventFactory(), 100); view.SetOnTouchListener(this); this.scaleX = scaleX; this.scaleY = scaleY; }
/* * This method was used to create the circle view with animation. * */ private View GetCircleView(FrameLayout.LayoutParams rParams, RandomData randomData) { var circleView = new View(this); circleView.SetBackgroundResource(Resource.Drawable.circle); circleView.Clickable = true; circleView.Focusable = true; circleView.FocusableInTouchMode = true; circleView.SetOnTouchListener(this); _rootLayout.AddView(circleView, rParams); circleView.StartAnimation(GetAnimationForNewViews()); if (randomData != null) { ChangeTitle(randomData.Title); } return(circleView); }
void ViewTreeObserver.IOnGlobalLayoutListener.OnGlobalLayout() { _gridChild = ViewGroup.GetChildAt(0); _gridChild.SetOnTouchListener(this); }
private void InitCard(View cardView, bool canDismiss) { ResetAnimatedView (cardView); cardView.SetOnTouchListener (mTouchListener); if (!canDismiss) mFixedViewList.Add (cardView); }
public bool OnLongClick(View v) { v.SetOnTouchListener(this); return true; }
protected override void Dispose(bool disposing) { view.SetOnTouchListener(null); base.Dispose(disposing); }
public CometTouchGestureListener(AView view) { this.view = view; view.SetOnTouchListener(this); }
protected void ActivateSwissListItem(View view, int position) { if (ExpandCollapseEnabled) EnableExpandCollapse (view, position); if (ExpandCollapseEnabled || SwipeToDeleteEnabled) view.SetOnTouchListener (new SwissTouchListener(this, position)); }