SHARE
TWEET

Untitled

a guest Feb 17th, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.         Button btnToast = (Button) findViewById(R.id.btnToast);
  3.         btnToast.setOnClickListener(new View.OnClickListener() {
  4.  
  5.             @Override
  6.             public void onClick(View v){
  7.                 EditText txtNama = (EditText)findViewById(R.id.txtNama);
  8.  
  9.  
  10.                 String nama  = txtNama.getText().toString();
  11.                 Toast.makeText(getApplicationContext(),"Halo " + nama + "...", Toast.LENGTH_SHORT).show();
  12.  
  13.             }
  14.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top