Research and Analysis of components of Android forms

Source: Internet
Author: User

Android forms are an important part of Google's enterprise strategy. An extensible view of Views can be used to create applications, including lists, grids, text box boxes ), button buttons), even including an embedded web browser.

The width of the text box is set to FILL_PARENT; the width of other elements is set to WRAP_CONTENT. The default alignment mode is left alignment. Weight is not set on the left. The default value is 0); weight is set to 1 in the comments text box on the right. If the Name text box is also set to 1, the Name and Comments text boxes will have the same height.

In a horizontally arranged LinearLayout, each item sorts the elements of the first row of the first column by their text baseline, that is, the top or leftmost, Which is set as the reference baseline ). Therefore, when people search for elements in a form, they do not need to read the text of the elements from the top seven to the bottom. We can disable this setting in layout XML.

A TableLayout In the Android form is composed of many TableRow. Each TableRow defines a row. In fact, you can define other sub-objects, which will be explained below ). The TableLayout container does not display the border lines of row, cloumns, or cell. Each row has 0 or more cells, and each cell has one View object.

A table consists of columns and rows in multiple cells. The table allows cells to be empty. Cells cannot span columns, which is different from HTML. A TableLayout is displayed, and the dotted lines in the figure represent invisible cell borders. This view displays the Class Name of the screen element. The attribute list of each element is shown below. One part of these attributes is provided directly by the element, and the other part is provided by the subclass of the LayoutParams member RelativeLayout of the container.

The RelativeLayout parameters include width, height, below, alignTop, toLeft, padding, and marginLeft. Note: A portion of these parameters. Its value is relative to other child elements, so it is RelativeLayout. These parameters include toLeft, alignTop, and below, which are used to specify the left, top, and bottom positions relative to other elements.

It uses a software stack (also known as software stack) architecture. It is mainly divided into three parts: the underlying layer is based on the Linux core, developed by C language, and only provides basic functions. The middle layer includes the function Library and Virtual Machine, developed by C +. The top layer is various applications, including call programs and short message programs. The applications are developed by various companies and written in java.

To promote this technology, Google and dozens of other mobile companies have established the Open Mobile Alliance Open Handset Alliance ). As an important part of Google's enterprise strategy, Android forms will further promote the enterprise's goal of "providing information to everyone anytime, anywhere.

A large number of mobile phone users around the world are using various Android-based phones. Google's goal is to make mobile communications independent of devices or even platforms. For this purpose, Android will supplement and will not replace Google's long-standing mobile development strategy: by partnering with mobile phone manufacturers and mobile operators around the world, develop useful and attractive mobile services and promote these products.

Related Article

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.