Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bogalemes24/bdee075bb272b8c7dfb868d6bfa8dfe5 to your computer and use it in GitHub Desktop.
Save bogalemes24/bdee075bb272b8c7dfb868d6bfa8dfe5 to your computer and use it in GitHub Desktop.
/**
* 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));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment