private void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e) { if (listView) { EventAction(Action.ShowContent); } }
private void OnTapGestureDected(object source, TapGestureDetector.DetectedEventArgs e) { if (e.View == baseView) { View stickerBaseView = new View() { WidthSpecification = 200, HeightSpecification = 200 }; tgd.Attach(stickerBaseView); lpgd.Attach(stickerBaseView); pgd.Attach(stickerBaseView); baseView.Add(stickerBaseView); Random random = new Random(); int number = random.Next(1, 10); string path = ApplicationInfo.SharedResourcePath; string file = "fb_emoji_500_0" + number + ".png.gif"; string gif = path + file; ImageView stickerImageView = new ImageView(gif) { WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, ReleasePolicy = ReleasePolicyType.Never }; stickerBaseView.Add(stickerImageView); } }
private void OnTap(object sender, TapGestureDetector.DetectedEventArgs e) { View view = sender as View; if (view = mContactCard) { Animate(); } }
public override void OnTap(object sender, TapGestureDetector.DetectedEventArgs e, object userData) { Tizen.Log.Error("NUI", $"OnTap \n"); if (userData != null) { TouchGestureSample sample = (TouchGestureSample)userData; sample.ChangeText(); } }
protected virtual void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e) { if (Feedback && e?.TapGesture?.State == Gesture.StateType.Started) { if (feedback != null && feedback.IsSupportedPattern(FeedbackType.Sound, "Tap")) { feedback.Play(FeedbackType.Sound, "Tap"); } } }
private void OnDetected(object obj, TapGestureDetector.DetectedEventArgs e) { View v1 = e.View; e.View = v1; TapGesture p1 = e.TapGesture; e.TapGesture = p1; }
private new void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e) { if (e.TapGesture.Type == Gesture.GestureType.Tap) { // Stop scrolling if tap detected (press then relase). // Unless in Pages mode, do not want a page change to stop part way. if (scrolling && !SnapToPage) { StopScroll(); } } }
private void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e) { View itemView = e.View as View; if (itemView == null) { return; } if (itemViewTable.ContainsKey(itemView.ID)) { FlexibleViewViewHolder holder = itemViewTable[itemView.ID]; mFlexibleView.FocusedItemIndex = holder.AdapterPosition; mFlexibleView.DispatchItemClicked(holder); } }
public void TapGestureDetectorDetected() { tlog.Debug(tag, $"TapGestureDetectorDetected START"); TapGestureDetector a1 = new TapGestureDetector(); a1.Detected += OnDetected; a1.Detected -= OnDetected; TapGestureDetector.DetectedEventArgs e = new TapGestureDetector.DetectedEventArgs(); object o = new object(); OnDetected(o, e); a1.Dispose(); tlog.Debug(tag, $"TapGestureDetectorDetected END (OK)"); Assert.Pass("TapGestureDetectorDetected"); }
private void OnLogoTapped(object source, TapGestureDetector.DetectedEventArgs e) { // Only show if currently fully hidden. If transitioning-out, the transition will not be interrupted. if (!mVersionPopup || (mVersionPopup.DisplayState == Popup.DisplayStateType.Hidden)) { if (!mVersionPopup) { string stream = ""; stream += "DALi Core: " + CORE_MAJOR_VERSION + "." + CORE_MINOR_VERSION + "." + CORE_MICRO_VERSION + "\n"; stream += "DALi Adaptor: " + ADAPTOR_MAJOR_VERSION + "." + ADAPTOR_MINOR_VERSION + "." + ADAPTOR_MICRO_VERSION + "\n"; stream += "DALi Toolkit: " + TOOLKIT_MAJOR_VERSION + "." + TOOLKIT_MINOR_VERSION + "." + TOOLKIT_MICRO_VERSION + "\n"; mVersionPopup = new Popup(); TextLabel titleActor = new TextLabel("Version information"); titleActor.Name = "titleActor"; titleActor.HorizontalAlignment = HorizontalAlignment.Center; TextLabel contentActor = new TextLabel(stream); contentActor.Name = "contentActor"; contentActor.MultiLine = true; contentActor.HorizontalAlignment = HorizontalAlignment.Center; contentActor.SetPadding(new PaddingType(0, 0, 20, 0)); mVersionPopup.SetTitle(titleActor); mVersionPopup.SetContent(contentActor); mVersionPopup.WidthResizePolicy = ResizePolicyType.SizeRelativeToParent; mVersionPopup.SetSizeModeFactor(new Vector3(0.75f, 1.0f, 1.0f)); mVersionPopup.HeightResizePolicy = ResizePolicyType.FitToChildren; mVersionPopup.TouchedOutside += HideVersionPopup; mVersionPopup.PositionUsesPivotPoint = true; mVersionPopup.PivotPoint = PivotPoint.Center; mVersionPopup.ParentOrigin = ParentOrigin.Center; Window.Instance.Add(mVersionPopup); } mVersionPopup.SetDisplayState(Popup.DisplayStateType.Shown); } }
public virtual void OnTap(object sender, TapGestureDetector.DetectedEventArgs e, object userData) { }
private void InternalOnTap(object sender, TapGestureDetector.DetectedEventArgs e) { mListener.OnTap(sender, e, mUserData); mTapGestureDetector.Detected -= InternalOnTap; }
protected virtual void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e) { }
private void OnDetected(object obj, TapGestureDetector.DetectedEventArgs e) { }
public override void OnTap(object sender, TapGestureDetector.DetectedEventArgs e) { Tizen.Log.Error("NUI", $"OnTap \n"); }