Skip to content

Instantly share code, notes, and snippets.

@AbdulrahmanOssama
AbdulrahmanOssama / imacros-cheatsheet.md
Created September 10, 2019 11:46
iMacros Command, Variable, and function reference
@AbdulrahmanOssama
AbdulrahmanOssama / git_cheat-sheet.md
Created July 6, 2019 15:35 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
/**
* Change the current displayed fragment by a new one.
* - if the fragment is in backstack, it will pop it
* - if the fragment is already displayed (trying to change the fragment with the same), it will not do anything
*
* @param frag the new fragment to display
* @param saveInBackstack if we want the fragment to be in backstack
* @param animate if we want a nice animation or not
*/
/**
* 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));
}