AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.LinearLayout Class Reference
Inheritance diagram for com.google.appinventor.components.runtime.LinearLayout:
com.google.appinventor.components.runtime.Layout

Public Member Functions

ViewGroup getLayoutManager ()
 
void add (AndroidViewComponent component)
 
void setHorizontalGravity (int gravity)
 
void setVerticalGravity (int gravity)
 
void setBaselineAligned (boolean baselineAligned)
 

Detailed Description

Linear layout for placing components horizontally or vertically.

Definition at line 20 of file LinearLayout.java.

Member Function Documentation

◆ add()

void com.google.appinventor.components.runtime.LinearLayout.add ( AndroidViewComponent  component)

Adds the specified component to this layout.

Parameters
componentcomponent to add

Implements com.google.appinventor.components.runtime.Layout.

Definition at line 108 of file LinearLayout.java.

◆ getLayoutManager()

ViewGroup com.google.appinventor.components.runtime.LinearLayout.getLayoutManager ( )

Returns the view group (which is a container with a layout manager) associated with the layout.

Returns
view group

Implements com.google.appinventor.components.runtime.Layout.

Definition at line 104 of file LinearLayout.java.

◆ setBaselineAligned()

void com.google.appinventor.components.runtime.LinearLayout.setBaselineAligned ( boolean  baselineAligned)

Definition at line 123 of file LinearLayout.java.

◆ setHorizontalGravity()

void com.google.appinventor.components.runtime.LinearLayout.setHorizontalGravity ( int  gravity)

Definition at line 115 of file LinearLayout.java.

◆ setVerticalGravity()

void com.google.appinventor.components.runtime.LinearLayout.setVerticalGravity ( int  gravity)

Definition at line 119 of file LinearLayout.java.


The documentation for this class was generated from the following file: