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