Advertisement
rickyc81

Untitled

Aug 19th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. package com.example.miacalcolatricegrafica;
  2.  
  3. import android.os.Bundle;
  4. import android.app.Activity;
  5. import android.view.Menu;
  6. import android.widget.Button;
  7. import android.widget.EditText;
  8.  
  9.  
  10. public class MainActivity extends Activity {
  11.  
  12. @Override
  13. protected void onCreate(Bundle savedInstanceState) {
  14. super.onCreate(savedInstanceState);
  15. setContentView(R.layout.activity_main);
  16. }
  17.  
  18. Button bottone1 = (Button) findViewById(R.id.button1);
  19. Button bottone2 = (Button) findViewById(R.id.button2);
  20. Button bottone3 = (Button) findViewById(R.id.button3);
  21. Button bottone4 = (Button) findViewById(R.id.button4);
  22. Button bottone5 = (Button) findViewById(R.id.button5);
  23. Button bottone6 = (Button) findViewById(R.id.button6);
  24. Button bottone7 = (Button) findViewById(R.id.button7);
  25. Button bottone8 = (Button) findViewById(R.id.button8);
  26. Button bottone9 = (Button) findViewById(R.id.button9);
  27. Button bottone0 = (Button) findViewById(R.id.button0);
  28. Button bottoneSomma = (Button) findViewById(R.id.buttonSomma);
  29. Button bottoneSottrazione = (Button) findViewById(R.id.buttonSottrazione);
  30. Button bottoneMoltiplicazione = (Button) findViewById(R.id.buttonMoltiplicazione);
  31. Button bottoneDivisione = (Button) findViewById(R.id.buttonDivisone);
  32. Button bottoneVirgola = (Button) findViewById(R.id.button20);
  33. Button bottoneClear = (Button) findViewById(R.id.buttonC);
  34. Button bottoneRisultato = (Button) findViewById(R.id.buttonRisultato);
  35. EditText Risultato = (EditText) findViewById(R.id.textView1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement