Android scroll bar Simple description

Source: Internet
Author: User

First look at my own writing layout, the computer screen is too small, only to intercept a radiobutton.

Draw a horizontalscrollview first, because I want to do horizontal scrolling, then I need a horizontal layout, add a linearlayout, then I need a group of radio buttons, nested a set of Radiogroup

Explain the concept of scrollview.

1. ScrollView is a derived class of ViewGroup, and ViewGroup is a derived class of view.

2. Screen size is always limited, especially for mobile devices. When there is a lot of content that needs to be displayed, when a screen is displayed, you need to use scrolling.

3. ScrollView can only contain a direct sub-view, because ScrollView is a derived class of framelayout, typically, this direct child view is a linearlayout, in the Direct child view ( such as LinearLayout), you can include other objects.

4. ScrollView only supports vertical scrolling.

5. Horizontalscrollview except for horizontal scrolling only, others are the same as ScrollView.

6. If you want the screen to support vertical scrolling and horizontal scrolling, then let Horizontalscrollview as a direct sub-view of the ScrollView, or let ScrollView be the direct child view of the Horizontalscrollview.

The following is the layout format when used

When both vertical and horizontal scrolling are required, they can be nested with each other

Android scroll bar Simple description

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.