This Notes is according to the udacity free course :
Android Development for Beginners
Lesson 2A : Solving Math Problems
So we know how to let our machine to display the number, and then we want to ask them to help us do some math work.
Just type a formula in the display function and then run you app.
Tips : If you want to use some difficult operation in you formula just google it : arithmetic operator java
Tips 2 : If you cannot run well your app just follow those steps don't be anxious~ :-)
The pathway for an app works:
Follow the pathway, when you click on the "order" button, it will call the xml to the java method. (1--->2)
The method will called to display(2) , and we have to define what is "display" and where we want to DISPLAY on the front layer(screen)
So we define the method and the method attach on the id "quantity_text_view" which is the word "2" on the screen.(3--->4--->5)
H.W.
Android Development for Beginners
Lesson 2A : Solving Math Problems
So we know how to let our machine to display the number, and then we want to ask them to help us do some math work.
Just type a formula in the display function and then run you app.
Tips : If you want to use some difficult operation in you formula just google it : arithmetic operator java
Tips 2 : If you cannot run well your app just follow those steps don't be anxious~ :-)
The pathway for an app works:
Follow the pathway, when you click on the "order" button, it will call the xml to the java method. (1--->2)
The method will called to display(2) , and we have to define what is "display" and where we want to DISPLAY on the front layer(screen)
So we define the method and the method attach on the id "quantity_text_view" which is the word "2" on the screen.(3--->4--->5)
H.W.
留言
張貼留言