Android Development Learning-Basic Learning

Source: Internet
Author: User

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

    • View Drawing-android Three most basic objects (Color,paint,canvas)

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

    • Handle Learning-android Message processing mechanism (Handler, Looper, MessageQueue and message)

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.