Introduction to Android Development (v) Screen Components 5.1 view and ViewGroup

Source: Internet
Author: User

Activity (Active) contains views (views) and viewgroups (view groups).

View is a component (Widget) that is displayed on the screen. View Example: button, label (TextView), and text box (EDITTEXT). Each view is inherited from the base class Android.view.View.

The View group (ViewGroup) can contain one or more view. ViewGroup itself is a special view that provides a layout that you can use to organize a series of view views.

Examples of viewgroups: LinearLayout and Framelayout. Each "ViewGroup" inherits from the base class Android.view.ViewGroup.

Android offers the following viewgroups:

LinearLayout

Absolutelayout

Tablelayout

Relativelayout

Framelayout

<scrollview

In the next few tutorials, each viewgroup is described in detail. Note that typically, when you create a UI, you mix one or several different viewgroup.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

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.