Skip to content

Instantly share code, notes, and snippets.

Avatar

Vikram Verma Vendrio

  • Bangalore
View GitHub Profile
View New method in MainActivity.java
/**
* 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));
}
You can’t perform that action at this time.