1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
public class DisplayManager extends MainActivity {
private Drawable bulle_pleine;
private int point;
private String[] tabScore = {"0", "15", "30", "40", "EG", "AV","Jeu"};
public void updateDisplayPoint(String player, int pt) {
if (player == "nous") {
btn_nous.setText(tabScore[pt]);
}else{
btn_eux.setText(tabScore[pt]);
}
}
public void updateDisplayGame(String player, int ptGame) {
Log.i("ptGame ", String.valueOf(ptGame));
if (player == "nous") {
switch (ptGame) {
case 1:
bulle_pleine = ContextCompat.getDrawable(getApplicationContext(), R.drawable.bulle_pleine);
nous_jeux_1.setImageDrawable(bulle_pleine);
break;
}
}
}
} |
Partager