本文共 887 字,大约阅读时间需要 2 分钟。
↳ | |||
↳ | |||
↳ | android.widget.FrameLayout |
Known Direct Subclasses , , , , , , , , , |
Known Indirect Subclasses , , , , |
FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other. You can, however, add multiple children to a FrameLayout and control their position within the FrameLayout by assigning gravity to each child, using the attribute.
Child views are drawn in a stack, with the most recently added child on top. The size of the FrameLayout is the size of its largest child (plus padding), visible or not (if the FrameLayout's parent permits). Views that are are used for sizing only if
is set to true.
转载地址:http://mxlli.baihongyu.com/