Skip to content

Instantly share code, notes, and snippets.

Created April 28, 2015 20:34
Show Gist options
  • Save anonymous/fa134c55a4a43e8d6004 to your computer and use it in GitHub Desktop.
Save anonymous/fa134c55a4a43e8d6004 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Apr 28, 2015.
    7 changes: 7 additions & 0 deletions New method in MainActivity.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    /**
    * This method displays the given price on the screen.
    */
    private void displayPrice(int number) {
    TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
    priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
    }