Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.miacalcolatricegrafica;
- import android.os.Bundle;
- import android.app.Activity;
- import android.view.Menu;
- import android.widget.Button;
- import android.widget.EditText;
- public class MainActivity extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- }
- Button bottone1 = (Button) findViewById(R.id.button1);
- Button bottone2 = (Button) findViewById(R.id.button2);
- Button bottone3 = (Button) findViewById(R.id.button3);
- Button bottone4 = (Button) findViewById(R.id.button4);
- Button bottone5 = (Button) findViewById(R.id.button5);
- Button bottone6 = (Button) findViewById(R.id.button6);
- Button bottone7 = (Button) findViewById(R.id.button7);
- Button bottone8 = (Button) findViewById(R.id.button8);
- Button bottone9 = (Button) findViewById(R.id.button9);
- Button bottone0 = (Button) findViewById(R.id.button0);
- Button bottoneSomma = (Button) findViewById(R.id.buttonSomma);
- Button bottoneSottrazione = (Button) findViewById(R.id.buttonSottrazione);
- Button bottoneMoltiplicazione = (Button) findViewById(R.id.buttonMoltiplicazione);
- Button bottoneDivisione = (Button) findViewById(R.id.buttonDivisone);
- Button bottoneVirgola = (Button) findViewById(R.id.button20);
- Button bottoneClear = (Button) findViewById(R.id.buttonC);
- Button bottoneRisultato = (Button) findViewById(R.id.buttonRisultato);
- EditText Risultato = (EditText) findViewById(R.id.textView1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement