Beispiel #1
0
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);

            ContentView = R.layout.activity_airbutton_simple;

            Button btnMenu = (Button)findViewById(R.id.btn_menu);

            createMenuWidgetFromView(btnMenu);
            Button btnRecipient = (Button)findViewById(R.id.btn_recipient);

            createRecipientListWidgetFromView(btnRecipient);
            Button btnImage = (Button)findViewById(R.id.btn_image);

            createImageListWidgetFromView(btnImage);
            Button btnText = (Button)findViewById(R.id.btn_text);

            createTextListWidgetFromView(btnText);

            Slook slook = new Slook();

            if (!slook.isFeatureEnabled(Slook.AIRBUTTON))
            {
                Toast.makeText(this, "This model doesn't support AirButton", Toast.LENGTH_LONG).show();
            }
            else
            {
                Toast.makeText(this, "Please hover and press the S-pen side-button on each button", Toast.LENGTH_SHORT).show();
            }
        }
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			ContentView = R.layout.activity_airbutton_simple;

			Button btnMenu = (Button) findViewById(R.id.btn_menu);
			createMenuWidgetFromView(btnMenu);
			Button btnRecipient = (Button) findViewById(R.id.btn_recipient);
			createRecipientListWidgetFromView(btnRecipient);
			Button btnImage = (Button) findViewById(R.id.btn_image);
			createImageListWidgetFromView(btnImage);
			Button btnText = (Button) findViewById(R.id.btn_text);
			createTextListWidgetFromView(btnText);

			Slook slook = new Slook();
			if (!slook.isFeatureEnabled(Slook.AIRBUTTON))
			{
				Toast.makeText(this, "This model doesn't support AirButton", Toast.LENGTH_LONG).show();
			}
			else
			{
				Toast.makeText(this, "Please hover and press the S-pen side-button on each button", Toast.LENGTH_SHORT).show();
			}
		}
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			mGlSurfaceView = new GLSurfaceView(this);
			mGlSurfaceView.Renderer = new RendererAnonymousInnerClassHelper(this);
			ContentView = mGlSurfaceView;
			mGlSurfaceView.OnHoverListener = new OnHoverListenerAnonymousInnerClassHelper(this);
			mAirButton = new SlookAirButton(mGlSurfaceView, AdapterMenuList, SlookAirButton.UI_TYPE_MENU);
			mAirButton.Gravity = SlookAirButton.GRAVITY_HOVER_POINT;

			Slook slook = new Slook();
			if (!slook.isFeatureEnabled(Slook.AIRBUTTON))
			{
				Toast.makeText(this, "This model doesn't support AirButton", Toast.LENGTH_LONG).show();
			}
			else
			{
				Toast.makeText(this, "Please hover and push the Spen button on each button", Toast.LENGTH_SHORT).show();
			}
		}
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);

            mGlSurfaceView                 = new GLSurfaceView(this);
            mGlSurfaceView.Renderer        = new RendererAnonymousInnerClassHelper(this);
            ContentView                    = mGlSurfaceView;
            mGlSurfaceView.OnHoverListener = new OnHoverListenerAnonymousInnerClassHelper(this);
            mAirButton         = new SlookAirButton(mGlSurfaceView, AdapterMenuList, SlookAirButton.UI_TYPE_MENU);
            mAirButton.Gravity = SlookAirButton.GRAVITY_HOVER_POINT;

            Slook slook = new Slook();

            if (!slook.isFeatureEnabled(Slook.AIRBUTTON))
            {
                Toast.makeText(this, "This model doesn't support AirButton", Toast.LENGTH_LONG).show();
            }
            else
            {
                Toast.makeText(this, "Please hover and push the Spen button on each button", Toast.LENGTH_SHORT).show();
            }
        }