Пример #1
0
  private void toastLastScore() {
    //
    Toast t =
        Toast.makeText(
            this, "" + "(+" + mCurrentGame.getLastAddedScore() + ")", Toast.LENGTH_SHORT);

    t.setGravity(Gravity.TOP, textViewGameScoreText.getLeft(), textViewGameScoreText.getTop());
    t.setMargin(0, 0);

    t.show();
  }
Пример #2
0
 private void showPlayerWon() {
   Toast.makeText(this, "You won! :)", Toast.LENGTH_LONG).show();
 }