Role of the viewgroup class

Source: Internet
Author: User

 

View class

1. The Android. View class is the most basic UI class. Many UI components on Android inherit this class.

2. These UI components include buttons, textview, and checkbox.

3. How should these UI components be placed?

Viewgroup class

1. The preceding UI component is placed in a special view container, which is the viewgroup.

2. viewgroup is used to layout the view components added to it.

3. Unfortunately, the android. View. viewgoup class is an abstract class and cannot be used directly.

Viewgroup class implementation

There are many classes for viewgoup implementation, which have their own layout characteristics. For example, the linearlayout class is to arrange its elements in the horizontal and vertical directions.

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.