Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save skeinegal/a1f43ef9772502f94cf5c72041e60ce9 to your computer and use it in GitHub Desktop.

Select an option

Save skeinegal/a1f43ef9772502f94cf5c72041e60ce9 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));
    }