public class BorderFrameUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM |
static int |
LEFT |
static int |
RIGHT |
static int |
TOP |
Constructor and Description |
---|
BorderFrameUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addView(int side,
android.view.View v)
Add a view to one of the border frames
|
static void |
addView(int side,
android.view.View v,
int gravity)
Add a view to one of the border frames
|
static android.widget.FrameLayout |
getFrame(int side)
Given a side of the screen, get the corresponding border frame
|
static void |
removeView(int side,
android.view.View v)
Remove a view from one of the border frames
|
static void |
setBackgroundColor(int side,
int color)
Set the background color for one of the border frames
|
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static android.widget.FrameLayout getFrame(int side)
public static void addView(int side, android.view.View v, int gravity)
side
- Frame sidev
- View to addgravity
- Gravity positionpublic static void addView(int side, android.view.View v)
side
- Frame sidev
- View to addpublic static void removeView(int side, android.view.View v)
side
- Frame sidev
- View to removepublic static void setBackgroundColor(int side, int color)
side
- Frame sidecolor
- Background color