AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AlignmentUtil Class Reference

Public Member Functions

 AlignmentUtil (LinearLayout viewLayout)
 
void setHorizontalAlignment (int alignment) throws IllegalArgumentException
 
void setVerticalAlignment (int alignment) throws IllegalArgumentException
 

Detailed Description

Utilities for centering contents of arrangements and screen

Author
hal@m.nosp@m.it.e.nosp@m.du (Hal Abelson)

Definition at line 18 of file AlignmentUtil.java.

Constructor & Destructor Documentation

◆ AlignmentUtil()

com.google.appinventor.components.runtime.util.AlignmentUtil.AlignmentUtil ( LinearLayout  viewLayout)

Definition at line 21 of file AlignmentUtil.java.

Member Function Documentation

◆ setHorizontalAlignment()

void com.google.appinventor.components.runtime.util.AlignmentUtil.setHorizontalAlignment ( int  alignment) throws IllegalArgumentException

Set the horizontal alignment (gravity) of the alignment Throws an IllegalArgumentException if alignment has illegal value.

Parameters
alignment

Definition at line 30 of file AlignmentUtil.java.

◆ setVerticalAlignment()

void com.google.appinventor.components.runtime.util.AlignmentUtil.setVerticalAlignment ( int  alignment) throws IllegalArgumentException

Set the vertical alignment (gravity) of the alignment Throws an IllegalArgumentException if alignment has illegal value.

Parameters
alignment

Definition at line 51 of file AlignmentUtil.java.


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