public class AppConfigViewHelper
extends java.lang.Object
| Constructor and Description |
|---|
AppConfigViewHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
dp(int dp) |
static int |
getAccentColor(android.content.Context context) |
static int |
getColor(android.content.Context context,
int resourceId) |
static int |
pickBestForegroundColor(int backgroundColor,
int lightForegroundColor,
int darkForegroundColor) |
static void |
setBackgroundDrawable(android.view.View view,
android.graphics.drawable.Drawable drawable) |
public static int getAccentColor(android.content.Context context)
public static int getColor(android.content.Context context,
int resourceId)
public static int pickBestForegroundColor(int backgroundColor,
int lightForegroundColor,
int darkForegroundColor)
public static void setBackgroundDrawable(android.view.View view,
android.graphics.drawable.Drawable drawable)
public static int dp(int dp)