Focus on today's headlines-do the full stack siege Lion, learn the code to read, love the whole stack, more love life. Provide programmer technical and life guidance dry goods.
If you really want to study, please comment on each article that you have learned, and record the traces of your studies.
Please write the code mentioned in all the tutorial articles at least three times to achieve a familiar effect.
This series of courses is. NET programmer to learn a series of Android development courses.
Here are the top four course listings:
Programmers take you on Android development, 10-day Quick Start-Android Learning Imperative
Programmers take you on Android development, 10-day Quick Start-development tool configuration Learning
Programmer takes you to learn Android development, 10 days fast into-contrast C # learning Java syntax
Programmers take you on Android development, 10-day Quick Start-Basics (iv)
In order to make the system effective quick-start Android development, we recommend that you follow the sequence of the system to watch this series of tutorials.
Directory:
First Android App
Popular Android controls
Simple Calculator
First Android App
In the previous lesson we have created the first Android software. This time we'll go over the details and open as
Select Start a new project
Select the minimum supported Android version:
We can click
Help me choose to make a selection. The general choice api15 is enough.
Next, by default, step by step operation is possible.
Wait a moment, we connect the phone, and then click the Run button above.
The Firstapp application will appear on the phone interface:
At this point we open activity_main.xml
Select the Text tab
This is our interface file. It is stored through an XML file. The pattern of HTML and WPF similar to what we've learned has a front-end interface and a background interface.
The foreground file, similar to HTML Android, also has a corresponding tag to represent different spaces. Set according to the property.
We see that the TextView inside is the control of the text display, and we can change the value of the Adnroid:text property to change the text we display in the software interface. Let's instead "do the full-stack siege Lion"
At this point the run is displayed as the full stack siege lion.
This is the first Android app is not a bit of a sense of accomplishment.
Popular Android controls
-
Common Controls
-
TextView: Indicates text display
-
EditText: Text edit box
-
Button: Buttons
-
RadioButton: Radio Box
-
CheckBox: check box
is not with our HTML have a lot of similarities, believe that the study of HTML you will not feel strange
2. Common Properties:
-
Android:layout_width: The width of the control is generally: wrap_content (to fit the width of the content) and wrap_content (to fit the width of the parent class) or a fixed value (the unit of the value is DP or dip: for example, 15DP)
-
Layout_height: Width of the same control
-
Control's padding:
-
Margins for controls
-
Change text Size: Android:textsize (the value of the font is used in the unit SP) for example
More control knowledge later in the process of writing code slowly introduced.
3. Simple Calculator Program
We implement a simple Calculator program interface.
In the next lesson, we'll explain how to connect to the backend code and actually implement the addition calculator.
This is a series of lessons from Python development learning, and you can follow the following media platforms for the latest tutorials.
A little information, Sohu Media platform, QQ public platform, public platform. Penguin Media platform, UC subscription platform, Baidu release platform are "Do the full stack siege lion."
For all resources in this tutorial, please follow: Fullstackcourse. Click to focus: Today's headline is the starting platform. We can also add QQ Group: 538742639, work together. More than 500 technologies Daniel is waiting for you.
Next article: All-Stack engineers must: Android mobile phone development, lesson six
Android Steps from basics to mastering self-paced tutorials, pure combat, pure Dry Goods (v)