예제 #1
0
        public LunarView(Context context, IAttributeSet attrs) : base(context, attrs)
        {
            // register our interest in hearing about changes to our surface
            ISurfaceHolder holder = Holder;

            holder.AddCallback(this);

            // create thread only; it's started in surfaceCreated()
            thread = new LunarThread(this, holder, context, new MessageHandler(this));

            IsFocusable = (true);             // make sure we get key events
        }
예제 #2
0
		public LunarView(Context context, IAttributeSet attrs) : base(context, attrs)
		{

			// register our interest in hearing about changes to our surface
			ISurfaceHolder holder = Holder;
			holder.AddCallback(this);

			// create thread only; it's started in surfaceCreated()
			thread = new LunarThread(this, holder, context, new MessageHandler(this));

			SetFocusable(true); // make sure we get key events
		}