public final class ViewUtil
extends java.lang.Object
View
objects.Modifier and Type | Method and Description |
---|---|
static void |
setBackgroundDrawable(android.view.View view,
android.graphics.drawable.Drawable drawable) |
static void |
setBackgroundImage(android.view.View view,
android.graphics.drawable.Drawable drawable)
Sets the background image for a view.
|
static void |
setChildHeightForHorizontalLayout(android.view.View view,
int height) |
static void |
setChildHeightForTableLayout(android.view.View view,
int height) |
static void |
setChildHeightForVerticalLayout(android.view.View view,
int height) |
static void |
setChildWidthForHorizontalLayout(android.view.View view,
int width) |
static void |
setChildWidthForTableLayout(android.view.View view,
int width) |
static void |
setChildWidthForVerticalLayout(android.view.View view,
int width) |
static void |
setImage(android.widget.ImageView view,
android.graphics.drawable.Drawable drawable)
Sets the image for an ImageView.
|
public static void setChildWidthForHorizontalLayout(android.view.View view, int width)
public static void setChildHeightForHorizontalLayout(android.view.View view, int height)
public static void setChildWidthForVerticalLayout(android.view.View view, int width)
public static void setChildHeightForVerticalLayout(android.view.View view, int height)
public static void setChildWidthForTableLayout(android.view.View view, int width)
public static void setChildHeightForTableLayout(android.view.View view, int height)
public static void setBackgroundImage(android.view.View view, android.graphics.drawable.Drawable drawable)
public static void setImage(android.widget.ImageView view, android.graphics.drawable.Drawable drawable)
public static void setBackgroundDrawable(android.view.View view, android.graphics.drawable.Drawable drawable)