2015-5-5-Notes

Source: Internet
Author: User

1.ScrollView, which inherits from Framelayout, so it is a special type of framelayout,

Because it can use the user scroll to display a list of views that occupy more space than the physical display. It is important to note that

ScrollView can contain only one child view or view group, and in the actual project, it usually contains a vertical linearlayout.

It is important to note that ScrollView cannot be used with the ListView because the ListView has already processed the vertical direction of the scroll

Keywords: framelayout, scrolling display

The dynamic effect shows---using the listview.
fixed effects show---use ScrollView.

2.<include/> and <merge/> tags

Include: Specify another layout, that is, to implement nested layout

Merge: Without viewgrouproot, the layout root element is eliminated , and the previous viewgrouproot (root element) is used.

Note:

When inflating a layout starting with a <merge /> , you must specify a parent and you ViewGroup must set to attachToRoot true

(See the documentation for inflate(int, android.view.ViewGroup, boolean) method)

2015-5-5-Notes

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.