Exemplo n.º 1
0
 protected virtual void OnItemClickFinished(object sender, CircleMenuEventArgs e)
 {
     if (ItemClickedFinished != null)
     {
         ItemClickedFinished(this, e);
     }
 }
        private void OnAutoFlingFinished(object sender, CircleMenuEventArgs args)
        {
            float angelPerSecond = args.velocity;

            if ((int)Math.Abs(angelPerSecond) < 20)
            {
                CircleMenuLayout.isFling = false;
            }

            CircleMenuLayout.isFling      = true;
            CircleMenuLayout.mStartAngle += (angelPerSecond / 30);
            angelPerSecond /= 1.0666F;
        }
Exemplo n.º 3
0
        /// WheelMenu wheelMenu;

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main2);

            mCircleMenuLayout = (CircleMenuLayout)FindViewById(Resource.Id.menulayout);
            mCircleMenuLayout.setMenuItemIconsAndTexts(mItemImgs, mItemTexts);

            CircleMenuEventArgs e = new CircleMenuEventArgs()
            {
            };

            mCircleMenuLayout.OnItemClickFinished += MCircleMenuLayout_ItemClicked;
        }
Exemplo n.º 4
0
        private void MCircleMenuLayout_ItemClicked(object sender, CircleMenuEventArgs e)
        {
            //"ShopMyCo", "RootsRUs", "Boutique", "Games", "Videos", "Blog"
            string url    = string.Empty;
            int    imgTag = e.position;

            switch (imgTag)
            {
            case 1:
                url = "http://shop.mycocreations.com";
                break;

            case 2:
                url = "http://www.roots-r-us.com";
                break;

            case 3:
                url = "http://boutique.mycocreations.com";
                break;


            case 5:
                url = "http://youtube.com/mycocreations";
                break;

            case 6:
                url = "http://blog.mycocreations.com";
                break;

            default:
                break;
            }

            Console.WriteLine("Image with tag " + imgTag);

            if (!string.IsNullOrEmpty(url))
            {
                OpenWebActivity(url);
            }
        }
Exemplo n.º 5
0
        /// WheelMenu wheelMenu;

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main2);
            LinearLayout mainLayout = FindViewById <LinearLayout>(Resource.Layout.Main2);

            mCircleMenuLayout = (CircleMenuLayout)FindViewById(Resource.Id.menulayout);
            mCircleMenuLayout.setMenuItemIconsAndTexts(mItemImgs, mItemTexts);

            CircleMenuEventArgs e = new CircleMenuEventArgs()
            {
            };

            mCircleMenuLayout.ItemClickedFinished += MCircleMenuLayout_ItemClicked;

            webLayout = FindViewById <StackView>(Resource.Layout.Web);
            if (webLayout != null)
            {
                mainLayout.AddView(webLayout);
            }
            browser = FindViewById <WebView>(Resource.Id.mainWebView);
        }
 public void OnMenuItemClick(object sender, CircleMenuEventArgs m)
 {
     // this.mOnMenuItemClickListener = mOnMenuItemClickListener;
     Console.Write("Testing menu item click position is " + m.position);
 }
Exemplo n.º 7
0
 private void MCircleMenuLayout_MenuItem_Clicked(object sender, CircleMenuEventArgs args)
 {
     Console.WriteLine("Main Menu Item Clicked menu item " + args.position);
 }
Exemplo n.º 8
0
 public void OnItemClickFinished(object sender, CircleMenuEventArgs e)
 {
 }