public class AHHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AHHelper.Mapper<T> |
| Constructor and Description |
|---|
AHHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2) |
static <T> void |
fill(java.util.ArrayList<T> al,
int count,
T value) |
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,
java.lang.Integer color,
boolean forceTint)
Return a tint drawable
|
static boolean |
isInteger(java.lang.String s) |
static boolean |
isTranslucentStatusBar(android.content.Context context)
Check if the status bar is translucent
|
static <T> void |
map(java.util.ArrayList<T> al,
AHHelper.Mapper<T> mapper) |
static android.app.Activity |
unwrap(android.content.Context context)
Unwrap activity
|
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.graphics.drawable.Drawable drawable,
android.widget.ImageView imageView,
java.lang.Integer fromColor,
java.lang.Integer 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 |
updateMargin(android.view.View view,
int left,
int top,
int right,
int bottom) |
static void |
updateTextColor(AHTextView textView,
java.lang.Integer fromColor,
java.lang.Integer 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,
java.lang.Integer color,
boolean 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 updateMargin(android.view.View view,
int left,
int top,
int right,
int bottom)
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(AHTextView textView, java.lang.Integer fromColor, java.lang.Integer toColor)
public static void updateViewBackgroundColor(android.view.View view,
int fromColor,
int toColor)
public static void updateDrawableColor(android.graphics.drawable.Drawable drawable,
android.widget.ImageView imageView,
java.lang.Integer fromColor,
java.lang.Integer 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 - Contextpublic static <T> void map(java.util.ArrayList<T> al,
AHHelper.Mapper<T> mapper)
public static <T> void fill(java.util.ArrayList<T> al,
int count,
T value)
public static boolean equals(java.lang.Object o1,
java.lang.Object o2)
public static boolean isInteger(java.lang.String s)