Inheritance: Android.Views.SurfaceView, ISurfaceHolderCallback, IRunnable
Example #1
0
        public DiscMenu(Context ctx, Bitmap centerBmp) : base(ctx)
        {
            //使 OnDraw 可被调用
            //this.SetWillNotDraw(false);

            var c = new CenterView(ctx, centerBmp, CENTER_RADIUS);

            c.ShowType = CenterView.ShowTypes.Inner;
            c.Tag      = CENTER_TAG;
            c.Click   += C_Click;
            this.AddViewInLayout(c, 0, new LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent));
            //c.SetZOrderMediaOverlay(true);

            this.SetOnTouchListener(this);
        }
Example #2
0
        public DiscMenu(Context ctx, Bitmap centerBmp)
            : base(ctx)
        {
            //ʹ OnDraw �ɱ�����
            //this.SetWillNotDraw(false);

            var c = new CenterView(ctx, centerBmp, CENTER_RADIUS);
            c.ShowType = CenterView.ShowTypes.Inner;
            c.Tag = CENTER_TAG;
            c.Click += C_Click;
            this.AddViewInLayout(c, 0, new LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent));
            //c.SetZOrderMediaOverlay(true);

            this.SetOnTouchListener(this);
        }