Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save surendra554/5abda710d65ffdb77ea869b84f5b87b6 to your computer and use it in GitHub Desktop.
Save surendra554/5abda710d65ffdb77ea869b84f5b87b6 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));
}
@surendra554
Copy link
Author

Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment