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.content.Context context,
int drawableResource,
int color)
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 |
updateDrawableColor(android.content.Context context,
int drawable,
android.widget.ImageView imageView,
int fromColor,
int toColor)
Update image view color 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 |
updateTopPadding(android.view.View view,
int fromPadding,
int toPadding)
Update top padding 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.content.Context context,
int drawableResource,
int color)
context - drawableResource - color - public static void updateTopPadding(android.view.View view,
int fromPadding,
int toPadding)
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,
int drawable,
android.widget.ImageView imageView,
int fromColor,
int toColor)
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