public class

FrameLayout

extends Layout
java.lang.Object
   ↳ com.neomades.ui.View
     ↳ com.neomades.ui.Layout
       ↳ com.neomades.ui.FrameLayout

Class Overview

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.

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.

By default, the following properties are applied to a new FrameLayout:

  • enabled
  • width content stretch : MATCH_PARENT.
  • height content stretch : MATCH_CONTENT.
  • content alignment : Not supported TOP|LEFT
  • visible : TRUE

Summary

[Expand]
Inherited XML Attributes
From class com.neomades.ui.View
[Expand]
Inherited Constants
From interface com.neomades.ui.Alignment
From interface com.neomades.ui.StretchMode
Public Constructors
FrameLayout()
Public Methods
void bringChildToFront(View child)
Moves the specified view at the top of the layout.
[Expand]
Inherited Methods
From class com.neomades.ui.Layout
From class com.neomades.ui.View
From class java.lang.Object

Public Constructors

public FrameLayout ()

Public Methods

public void bringChildToFront (View child)

Moves the specified view at the top of the layout. If the view is null or if the view is not in the layout, nothing happens.

Parameters
child the view to move to the front