Ejemplo n.º 1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.layout1);
     mBrokenView = BrokenView.Add2Window(this);
     FindViewById<Button>(Resource.Id.button1).SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
     FindViewById<Button>(Resource.Id.button2).SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
     var a = FindViewById<Button>(Resource.Id.button3);
     a.SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
 }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.layout1);
            mBrokenView = BrokenView.Add2Window(this);
            FindViewById <Button>(Resource.Id.button1).SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
            FindViewById <Button>(Resource.Id.button2).SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
            var a = FindViewById <Button>(Resource.Id.button3);

            a.SetOnTouchListener(new BrokenTouchListener.Builder(mBrokenView).Build());
        }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);
            mcontext = this;
            InitView();
            mBrokenView = BrokenView.Add2Window(this);

            whitePaint       = new Paint();
            whitePaint.Color = Color.Red;
            colorfulListener = new BrokenTouchListener.Builder(mBrokenView).Build();
            whiteListener    = new BrokenTouchListener.Builder(mBrokenView).
                               SetPaint(whitePaint).Build();
            SetOnTouchListener();
        }