Пример #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();
  }