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); }
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); }