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