Skip to main content

FrameLayout

Overview

FrameLayout is the simplest layout type. It creates a blank region (a frame) for each child control added. All controls are placed in frames and, by default, displayed in the top-left corner of the screen, stacked in the order they are added — earlier controls appear on the bottom layer, later controls on top. FrameLayout is suitable for layered designs.

Example

 <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>

Properties

Common Properties

See Common Properties

Private Properties

PropertyDescriptionValues
layout_weightChild weightNumber
When the parent is LinearLayout, child controls can set weight