This Notes is according to the udacity free course :
Android Development for Beginners
Lesson 2A : Fix the Order Button
Finally, you can add new coffee by just click the "+" button, but the order button is still out of work.
Use the Knowledge you learn before from this class to figure it out that how to let it calculating right price.
After the observation, try your best to correct the code.
Tips: Be careful when you set up the global variable "int quantity = 2" in MainActivity.java , it cannot match with the number we write price android:text="0" in activity_main.xml price's TextView.
They should be matched or will cause some error.
Android Development for Beginners
Lesson 2A : Fix the Order Button
Finally, you can add new coffee by just click the "+" button, but the order button is still out of work.
Use the Knowledge you learn before from this class to figure it out that how to let it calculating right price.
After the observation, try your best to correct the code.
Tips: Be careful when you set up the global variable "int quantity = 2" in MainActivity.java , it cannot match with the number we write price android:text="0" in activity_main.xml price's TextView.
They should be matched or will cause some error.
留言
張貼留言