Пример #1
0
 public void p2(View v) {
   // Select 2 player stat
   TextView result = (TextView) findViewById(R.id.multiResult);
   TextView resultTitle = (TextView) findViewById(R.id.MTitle);
   resultTitle.setText("2 Player");
   result.setText(
       mc.getbuzz1()
           + "\n"
           + String.valueOf(mc.getResult().findResult(0) + "\n")
           + mc.getbuzz2()
           + "\n"
           + String.valueOf(mc.getResult().findResult(1) + "\n"));
 } // end p2
Пример #2
0
 public void clear(View v) {
   // clear stat
   MStat.clearFile(this);
   // Set default view to 2 player buzzer
   TextView result = (TextView) findViewById(R.id.multiResult);
   TextView resultTitle = (TextView) findViewById(R.id.MTitle);
   resultTitle.setText("2 Player");
   result.setText(
       mc.getbuzz1()
           + "\n"
           + String.valueOf(mc.getResult().findResult(0) + "\n")
           + mc.getbuzz2()
           + "\n"
           + String.valueOf(mc.getResult().findResult(1) + "\n"));
 }
Пример #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_mstat);
   MStat.loadFromFile(this);
   // Set default view to 2 player buzzer
   TextView result = (TextView) findViewById(R.id.multiResult);
   TextView resultTitle = (TextView) findViewById(R.id.MTitle);
   resultTitle.setText("2 Player");
   result.setText(
       mc.getbuzz1()
           + "\n"
           + String.valueOf(mc.getResult().findResult(0) + "\n")
           + mc.getbuzz2()
           + "\n"
           + String.valueOf(mc.getResult().findResult(1) + "\n"));
 } // end onCreate
Пример #4
0
 public void p4(View v) {
   // Select 4 player stat
   TextView result = (TextView) findViewById(R.id.multiResult);
   TextView resultTitle = (TextView) findViewById(R.id.MTitle);
   resultTitle.setText("4 Player");
   result.setText(
       mc.getbuzz1()
           + "\n"
           + String.valueOf(mc.getResult().findResult(5) + "\n")
           + mc.getbuzz2()
           + "\n"
           + String.valueOf(mc.getResult().findResult(6) + "\n")
           + mc.getbuzz3()
           + "\n"
           + String.valueOf(mc.getResult().findResult(7) + "\n")
           + mc.getbuzz4()
           + "\n"
           + String.valueOf(mc.getResult().findResult(8) + "\n"));
 } // end p4