public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
arrayOf(T... views) |
static <T> T |
castParam(java.lang.Object value,
java.lang.String from,
int fromPos,
java.lang.String to,
int toPos) |
static <T> T |
castView(android.view.View view,
int id,
java.lang.String who,
java.lang.Class<T> cls) |
static <T> T |
findOptionalViewAsType(android.view.View source,
int id,
java.lang.String who,
java.lang.Class<T> cls) |
static android.view.View |
findRequiredView(android.view.View source,
int id,
java.lang.String who) |
static <T> T |
findRequiredViewAsType(android.view.View source,
int id,
java.lang.String who,
java.lang.Class<T> cls) |
static int |
getColor(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id) |
static android.content.res.ColorStateList |
getColorStateList(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id) |
static android.graphics.drawable.Drawable |
getDrawable(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id) |
static android.graphics.drawable.Drawable |
getTintedDrawable(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id,
int tintAttrId) |
static <T> java.util.List<T> |
listOf(T... views) |
public static android.graphics.drawable.Drawable getTintedDrawable(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id,
int tintAttrId)
public static int getColor(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id)
public static android.content.res.ColorStateList getColorStateList(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id)
public static android.graphics.drawable.Drawable getDrawable(android.content.res.Resources res,
android.content.res.Resources.Theme theme,
int id)
@SafeVarargs public static <T> T[] arrayOf(T... views)
@SafeVarargs public static <T> java.util.List<T> listOf(T... views)
public static <T> T findOptionalViewAsType(android.view.View source,
int id,
java.lang.String who,
java.lang.Class<T> cls)
public static android.view.View findRequiredView(android.view.View source,
int id,
java.lang.String who)
public static <T> T findRequiredViewAsType(android.view.View source,
int id,
java.lang.String who,
java.lang.Class<T> cls)
public static <T> T castView(android.view.View view,
int id,
java.lang.String who,
java.lang.Class<T> cls)
public static <T> T castParam(java.lang.Object value,
java.lang.String from,
int fromPos,
java.lang.String to,
int toPos)