udacityandroid/MainActivity.java

Published: 09 February 2018
on channel: The News
438
2

package com.example.android.justjava;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.example.android.justjava.R;



/**

This app displays an order form to order coffee.
*/
public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

/**
This method is called when the order button is clicked.
*/
public void submitOrder(View view) {
display(1 );
}

/**
This method displays the given quantity value on the screen.
*/
private void display(int number) {
TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);
quantityTextView.setText("" + number);
}
}


On this page of the site you can watch the video online udacityandroid/MainActivity.java with a duration of hours minute second in good quality, which was uploaded by the user The News 09 February 2018, share the link with friends and acquaintances, this video has already been watched 438 times on youtube and it was liked by 2 viewers. Enjoy your viewing!