Package android.view.View

Examples of android.view.View.OnClickListener


       
        useGps = new CheckBox(this);
        useGps.setText("use GPS");
        useGps.setVisibility(View.GONE);
        useGps.setChecked(false);
        useGps.setOnClickListener(new OnClickListener()
        {

      public void onClick(View v)
      {
        location.setEnabled( ! useGps.isChecked() );
      }
         
        });
       
        location = new EditText(this);
        location.setText("");
        location.setVisibility(View.GONE);
       
        
        btnUpdate = new Button(this);
        btnUpdate.setText("Update");
        btnUpdate.setVisibility(View.GONE);
        btnUpdate.setOnClickListener(new OnClickListener()
        {

      public void onClick(View v)
      {
        Runnable runner = new Runnable()
View Full Code Here


        lBtnClearLog = (Button) findViewById(R.id.btnFundClearLog);
        lMessage = (EditText) findViewById(R.id.txfFundMessage);
        lTarget = (EditText) findViewById(R.id.txfFundTarget);
        lLog = (EditText) findViewById(R.id.lblFundLog);

        lBtnSend.setOnClickListener(new OnClickListener() {

            public void onClick(View aView) {
                try {
                    JWC.sendText(lTarget.getText().toString(), lMessage.getText().toString());
                } catch (WebSocketException ex) {
                    // TODO: handle exception
                }
            }
        });

        lBtnBroadcast.setOnClickListener(new OnClickListener() {

            public void onClick(View aView) {
                try {
                    JWC.broadcastText(lMessage.getText().toString());
                } catch (WebSocketException ex) {
                    // TODO: handle exception
                }

            }
        });

        lBtnClearLog.setOnClickListener(new OnClickListener() {

            public void onClick(View aView) {
                lLog.setText("");
            }
        });
View Full Code Here

        lBtnCancel = (Button) findViewById(R.id.cfgBtnCancel);
        lBtnSave = (Button) findViewById(R.id.cfgBtnSave);
        lTxfURL = (EditText) findViewById(R.id.cfgTxfURL);
        lInstance = this;

        lBtnCancel.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {

                Toast.makeText(getApplicationContext(), "DISCARDING...",
                        Toast.LENGTH_SHORT).show();
                finish();
            }
        });

        lBtnSave.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                Toast.makeText(getApplicationContext(), "SAVING...",
                        Toast.LENGTH_SHORT).show();
View Full Code Here

                Toast.makeText(getApplicationContext(), "Photo has been taken!",
                        Toast.LENGTH_SHORT).show();
            }
        };

        mSurfaceView.setOnClickListener(new OnClickListener() {

            public void onClick(View aView) {
                mCamera.autoFocus(new Camera.AutoFocusCallback() {

                    public void onAutoFocus(boolean arg0, Camera arg1) {
View Full Code Here

TOP

Related Classes of android.view.View.OnClickListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.