Skip to content

Instantly share code, notes, and snippets.

View Eng-MFQ's full-sized avatar
🏠
Working from home

Muwaffaq imam Eng-MFQ

🏠
Working from home
View GitHub Profile
@Eng-MFQ
Eng-MFQ / displayPrice
Created February 13, 2018 15:30
Method For adding text to TextView
/**
* 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));
}
@Eng-MFQ
Eng-MFQ / MainActivity.java
Created February 13, 2018 14:31
Level 2 start app
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
/**
* This app displays an order form to order coffee.
*/
public class MainActivity extends AppCompatActivity {
@Eng-MFQ
Eng-MFQ / happy_birthday.xml
Created February 13, 2018 12:07
Level 1 Project
<!-- To download the Images and Project Mockup use links below -->
<!-- https://www.dropbox.com/sh/kq966uzv9cmq85u/AAB2bs7mQjFcOd6O8nElGHN1a?dl=0 -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"