Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the activity_main.xml? #4

Closed
bltzu opened this issue Sep 21, 2016 · 3 comments
Closed

Where is the activity_main.xml? #4

bltzu opened this issue Sep 21, 2016 · 3 comments

Comments

@bltzu
Copy link

bltzu commented Sep 21, 2016

I am trying to find which method to call for the onClick attribute for the Whipped cream CheckBox but I cannot find it in the repository.

Could you please identify the xml and/or the correct method to call?

Many thanks.

@ayudhhande
Copy link

In MainActivity.java, in method submitOrder you'll find:

// Figure out if the user wants whipped cream topping
CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);
boolean hasWhippedCream = whippedCreamCheckBox.isChecked();

    // Figure out if the user wants choclate topping
    CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.chocolate_checkbox);
    boolean hasChocolate = chocolateCheckBox.isChecked();

@jatinrajani
Copy link

jatinrajani commented Sep 29, 2016

close #4
@bltzu
Hi,
activity_main.xml is in the following address
Just-Java/app/src/main/res/layout/activity_main.xml

@vcctu85
Copy link

vcctu85 commented Jun 23, 2017

Closing this because question was answered.

@vcctu85 vcctu85 closed this as completed Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants