Ejemplo n.º 1
0
 private void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e)
 {
     if (listView)
     {
         EventAction(Action.ShowContent);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        private void OnTap(object sender, TapGestureDetector.DetectedEventArgs e)
        {
            View view = sender as View;

            if (view = mContactCard)
            {
                Animate();
            }
        }
Ejemplo n.º 4
0
 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();
     }
 }
Ejemplo n.º 5
0
 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");
         }
     }
 }
Ejemplo n.º 6
0
        private void OnDetected(object obj, TapGestureDetector.DetectedEventArgs e)
        {
            View v1 = e.View;

            e.View = v1;

            TapGesture p1 = e.TapGesture;

            e.TapGesture = p1;
        }
Ejemplo n.º 7
0
 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();
         }
     }
 }
Ejemplo n.º 8
0
            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);
                }
            }
Ejemplo n.º 9
0
        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");
        }
Ejemplo n.º 10
0
        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);
            }
        }
Ejemplo n.º 11
0
 public virtual void OnTap(object sender, TapGestureDetector.DetectedEventArgs e, object userData)
 {
 }
Ejemplo n.º 12
0
 private void InternalOnTap(object sender, TapGestureDetector.DetectedEventArgs e)
 {
     mListener.OnTap(sender, e, mUserData);
     mTapGestureDetector.Detected -= InternalOnTap;
 }
Ejemplo n.º 13
0
 protected virtual void OnTapGestureDetected(object source, TapGestureDetector.DetectedEventArgs e)
 {
 }
Ejemplo n.º 14
0
 private void OnDetected(object obj, TapGestureDetector.DetectedEventArgs e)
 {
 }
Ejemplo n.º 15
0
 public override void OnTap(object sender, TapGestureDetector.DetectedEventArgs e)
 {
     Tizen.Log.Error("NUI", $"OnTap \n");
 }