SHARE
TWEET

Untitled

a guest Sep 14th, 2017 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.syroid.sync;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.widget.Button;
  7. import android.widget.EditText;
  8. import android.widget.TextView;
  9.  
  10. public class Syroid extends Activity {
  11.  
  12. Button myButton;
  13. TextView myLabel;
  14. EditText myText;
  15.  
  16.  
  17. /** Called when the activity is first created. */
  18. @Override
  19. public void onCreate(Bundle savedInstanceState) {
  20. super.onCreate(savedInstanceState);
  21. setContentView(R.layout.main);
  22.  
  23.  
  24. myButton = (Button)findViewById(R.id.button01);
  25. myLabel = (TextView)findViewById(R.id.textView1);
  26. myText = (EditText)findViewById(R.id.editText1);
  27.  
  28. myButton.setOnClickListener(new View.OnClickListener() {
  29. public void onClick(View v) {
  30. myLabel.setText(myLabel.getText().toString());
  31.  
  32. }
  33. });
  34. }
  35. }
RAW Paste Data
Top