In the public number, found a self-taught Android an article, feel good. Make a small summary of it and arrange it to everyone. 1. Basic UI Learning
Button/textview/edittext/checkbox/imageview/girdview, etc., set in Activitymain.xml, occupy a place on the screen.
You can set the properties of these components,
: ID (unique identifier)
: Layout_width (Wide)
: Layout_height (High)
: Text (literal)
: Textsize/textcolor/textstyle
: Layout_gravity (the position of the control relative to the parent view)
: Gravity (Specifies the base position of the control)
: Padding/margin
: hint= "" (Default hint)
: Layout_weight (weight)/=0 (Specify how big it Takes)/>0 (average allocation of free space on the parent view)
2. Four Component Learning
Note: By default, the service is running in the main thread, and by default the Broadcastreceiver is in the Android system and does not die as the application shuts down.
3. Five large-format learning
Set in Activitymain.xml
Some special properties:
LinearLayout
: Orientation (alignment, horizontal or vertical)
Relativelayout
: Layout_alignparentright= "true"
: layout_below= under "@id"
: Layout_toleftof/torightof Left/Right
: Align Top of layout_aligntop
: Layout_alignleft left Alignment
: Layout_centerhorizontal= "true" horizontally centered
4. Friendly and interactive learning
5. Data storage
-
The memory store stores data in memory and reads the fastest but cannot be stored permanently.
-
The file store stores the data as files on disk through the IO stream of java.
-
Sharedpreferences stores data on disk as a fixed-format XML file.
-
Database storage typically refers to storing data in a SQLite database that comes with Android.
-
Networked storage is about uploading data to the cloud for storage. (Typical application: Network disk)
6. Network access
-
HttpClient: It is provided by Apache.
-
HttpURLConnection: Google is based on Java's own urlconnection improvements.
-
Socket:socket is a TCP/IP-based communication tool that comes with Java.
-
Webview:webview is a browser-based view of the Google Chromium kernel.
Note: Android will no longer be able to perform network operations on the main thread after starting from 4.0.
7. Animated Commentary
8. Drawing
9. Multimedia and Camera
10. Advanced UI Learning
Note: When using fragment, do you use the android.support.v4.app.Fragmentandroid.app.Fragment
11. Style Development
12. Multi-Threading and communication
13. Other Knowledge points
This is the introduction of the general framework, the specific study also requires a lot of effort!
Android Development Learning-Basic Learning