public class ViewHelper
extends java.lang.Object
Constructor and Description |
---|
ViewHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
setBackground(android.view.View view,
android.graphics.drawable.Drawable drawable)
Set the background to a given Drawable, or remove the background.
|
public static void setBackground(android.view.View view, android.graphics.drawable.Drawable drawable)
View.setBackground(Drawable)
or View.setBackgroundDrawable(Drawable)
based on the sdk
version.view
- View
to apply the background.drawable
- Drawable
The Drawable to use as the background, or null to remove the
background