MU Lesson network/Android Siege Lion Video Learning and Practice (iv)

Source: Internet
Author: User

Relativelayout
The Location property of the subclass control itself:

Framelayout


Absolutelayout rarely used

Tablelayout
Table layout with five layouts (tablelayout): The Tablelayout table layout model manages child controls as rows and columns, each of which behaves as a TableRow object, or it can be an object of view.


Note: Hidden properties and shrink, extruded properties can only be placed in the parent class layout.
The local property is for a control in TableRow.

Activity

There are two important loops in the activity's life cycle.
1. Click Home to have the mainactivity run in the background to perform the outer ring loop
2. When jumping to another page, the mainactivity loses focus, becomes transparent, and performs an inner ring loop.
The specific code process: Create a new second_activity, implement the Oncreat () method, Setcontentview (), create an XML file, and start the layout. Then register the new second_activity in the androidmanifest. Put the button in mainactivity to achieve the page jump function.

Intent


Two methods, the second has the return information.




Passing Data with intent



MU Lesson network/Android Siege Lion Video Learning and Practice (iv)

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.