The simplest calculator in the first part of Android practical tutorial
From today on, this column will continue to update Android simple practical blog articles. Unlike previous columns, this column has only examples. Each instance shall be written according to the content of the corresponding chapter corresponding to the knowledge points as far as possible, step by step. Some examples may have duplicate articles with another column.
The first simple case to start this column:
First, two layout files are set. One layout file is used to input data and obtain addition operation; Another layout file displays the final results. Activity1 starts activity2 and passes the calculated value to activity2
main. xml:
Page display:
result. xml
Activity03 activity:
resultActivity:
String. xml:
Finally, let's look at the configuration file: all activities should be registered, and activity03 should be set as the main activity
result:
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.