public class AlignmentUtil
extends java.lang.Object
Constructor and Description |
---|
AlignmentUtil(LinearLayout viewLayout) |
Modifier and Type | Method and Description |
---|---|
void |
setHorizontalAlignment(int alignment)
Set the horizontal alignment (gravity) of the alignment
Throws an IllegalArgumentException if alignment has illegal value.
|
void |
setVerticalAlignment(int alignment)
Set the vertical alignment (gravity) of the alignment
Throws an IllegalArgumentException if alignment has illegal value.
|
public AlignmentUtil(LinearLayout viewLayout)
public void setHorizontalAlignment(int alignment) throws java.lang.IllegalArgumentException
alignment
- java.lang.IllegalArgumentException
public void setVerticalAlignment(int alignment) throws java.lang.IllegalArgumentException
alignment
- java.lang.IllegalArgumentException