/// WheelMenu wheelMenu;

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

            SetContentView(Resource.Layout.Main2);

            //RelativeLayout circleMenu = FindViewById<RelativeLayout>(Resource.Id.circleMenu);

            //List<TextView> menuitems = new List<TextView>();
            //menuitems.Add(new TextView(this) { Text = "Menu1" });
            //menuitems.Add(new TextView(this) { Text = "Menu2 " });
            //menuitems.Add(new TextView(this) { Text = "Menu3 " });
            //menuitems.Add(new TextView(this) { Text = "Menu4 " });
            //menuitems.Add(new TextView(this) { Text = "Menu5 " });

            //mCircleMenuLayout = new CircleView(this.ApplicationContext, 120, menuitems);

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

            LinearLayout v = FindViewById <LinearLayout>(Resource.Layout.circle_menu_item);

            v.AddView(new ImageView(this.ApplicationContext)
            {
                Background = GetDrawable(Resource.Drawable.ani0_logo)
            });

            //   MCircleMenuLayout_Click(mCircleMenuLayout,new List<string>() { } );

            //LinearLayout circleMenu = FindViewById<LinearLayout>(Resource.Id.radialMenu);

            //wheelMenu = (WheelMenu)FindViewById(Resource.Id.radialMenu);

            //set the no of divisions in the wheel, default is 1
            //wheelMenu.SetDivCount(12);

            //set the drawable to be used as the wheel image. If you
            //don't set this, you'll get a  NullPointerException.
            //wheelMenu.SetWheelImage(Resource.Drawable.wheel);

            //wheelMenu.Click += WheelMenu_Click;


            //shopMyCo.SetOnRadialMenuClickListener(new RadialMenuRenderer.IOnRadailMenuClick()
            //{

            //});

            //  shopMyCo.SetOnRadialMenuClickListener(new RadialMenuItem.OnRadailMenuClick { });
            //btnShopMyco = FindViewById<Button>(Resource.Id.btnShopMyco);
            //btnShopMyco.Click += BtnShopMyco_Click;

            //btnShopHerbs = FindViewById<Button>(Resource.Id.btnShopHerbs);
            //btnShopHerbs.Click += BtnShopHerbs_Click;

            //btnShopBoutique = FindViewById<Button>(Resource.Id.btnBoutique);
            //btnShopBoutique.Click += BtnBoutique_Click;
        }
Ejemplo n.º 2
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);
        }
        /// WheelMenu wheelMenu;

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

            SetContentView(Resource.Layout.Main);

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

            mCircleMenuLayout.MenuItemClicked += MCircleMenuLayout_MenuItem_Clicked;
            mCircleMenuLayout.SetOnTouchListener(this);
        }
Ejemplo n.º 4
0
        /// WheelMenu wheelMenu;

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

            SetContentView(Resource.Layout.Main);

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

            //shopMyCo.SetOnRadialMenuClickListener(new RadialMenuRenderer.IOnRadailMenuClick()
            //{

            //});
        }
Ejemplo n.º 5
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;
        }
        /// 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);

            EventArgs e = new EventArgs()
            {
            };

            mCircleMenuLayout.CView_Click(this, e);
            mCircleMenuLayout.SetOnTouchListener(this);
        }
Ejemplo n.º 7
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);
        }