public class AHHelper
extends java.lang.Object
| Constructor and Description |
|---|
AHHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getSoftButtonsBarSizePort(android.content.Context context)
Get the height of the buttons bar
|
static android.graphics.drawable.Drawable |
getTintDrawable(android.graphics.drawable.Drawable drawable,
int color,
boolean forceTint)
Return a tint drawable
|
static boolean |
isTranslucentStatusBar(android.content.Context context)
Check if the status bar is translucent
|
static android.app.Activity |
unwrap(android.content.Context context)
Unwrap wactivity
|
static void |
updateAlpha(android.view.View view,
float fromValue,
float toValue)
Update alpha
|
static void |
updateBottomMargin(android.view.View view,
int fromMargin,
int toMargin,
int duration)
Update bottom margin with animation
|
static void |
updateDrawableColor(android.content.Context context,
android.graphics.drawable.Drawable drawable,
android.widget.ImageView imageView,
int fromColor,
int toColor,
boolean forceTint)
Update image view color with animation
|
static void |
updateLeftMargin(android.view.View view,
int fromMargin,
int toMargin)
Update left margin with animation
|
static void |
updateTextColor(android.widget.TextView textView,
int fromColor,
int toColor)
Update text color with animation
|
static void |
updateTextSize(android.widget.TextView textView,
float fromSize,
float toSize)
Update text size with animation
|
static void |
updateTopMargin(android.view.View view,
int fromMargin,
int toMargin)
Update top margin with animation
|
static void |
updateViewBackgroundColor(android.view.View view,
int fromColor,
int toColor)
Update text color with animation
|
static void |
updateWidth(android.view.View view,
float fromWidth,
float toWidth)
Update width
|
public static android.graphics.drawable.Drawable getTintDrawable(android.graphics.drawable.Drawable drawable,
int color,
boolean forceTint)
drawable - color - forceTint - public static void updateTopMargin(android.view.View view,
int fromMargin,
int toMargin)
public static void updateBottomMargin(android.view.View view,
int fromMargin,
int toMargin,
int duration)
public static void updateLeftMargin(android.view.View view,
int fromMargin,
int toMargin)
public static void updateTextSize(android.widget.TextView textView,
float fromSize,
float toSize)
public static void updateAlpha(android.view.View view,
float fromValue,
float toValue)
public static void updateTextColor(android.widget.TextView textView,
int fromColor,
int toColor)
public static void updateViewBackgroundColor(android.view.View view,
int fromColor,
int toColor)
public static void updateDrawableColor(android.content.Context context,
android.graphics.drawable.Drawable drawable,
android.widget.ImageView imageView,
int fromColor,
int toColor,
boolean forceTint)
public static void updateWidth(android.view.View view,
float fromWidth,
float toWidth)
public static boolean isTranslucentStatusBar(android.content.Context context)
context - Contextpublic static int getSoftButtonsBarSizePort(android.content.Context context)
context - Contextpublic static android.app.Activity unwrap(android.content.Context context)
context - Context