public final class UIUtil
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
UIUtil.BooleanStatus |
static class |
UIUtil.Digital |
static class |
UIUtil.FileUtils |
static class |
UIUtil.LikeStatus |
static class |
UIUtil.ShowStatus |
static class |
UIUtil.SimpleAnimationListener |
static class |
UIUtil.SimpleTextWatcher |
构造器和说明 |
---|
UIUtil() |
限定符和类型 | 方法和说明 |
---|---|
static int |
calculateAlphaValue(int c1,
int c2,
int alpha) |
static android.graphics.drawable.Drawable |
createDrawableSelector(android.graphics.drawable.Drawable draw,
android.graphics.drawable.Drawable drawPressed) |
static android.graphics.Bitmap |
getCircleBitmap(android.graphics.Bitmap bitmap)
把图片裁剪成圆形
|
static float |
getFontHeight(android.graphics.Paint paint) |
static java.lang.String |
getFromAppText(java.lang.String fromApp) |
static java.lang.String |
getNonNullString(java.lang.String string) |
static java.lang.String |
getStringCopy(java.lang.String value) |
static int |
getUserAge(java.lang.String birthday) |
static int |
getUserAge(java.lang.String birthday,
java.lang.String format) |
static boolean |
hasNULLView(android.view.View... views) |
static boolean |
setAlpha(android.view.View view,
float alpha) |
static void |
setGenderBackground(android.view.View view,
java.lang.String gender)
设置性别的背景色
|
static boolean |
setVisibility(android.view.View view,
int visibility) |
public static java.lang.String getNonNullString(java.lang.String string)
public static java.lang.String getStringCopy(java.lang.String value)
public static int getUserAge(java.lang.String birthday)
public static int getUserAge(java.lang.String birthday, java.lang.String format)
public static float getFontHeight(android.graphics.Paint paint)
public static boolean setVisibility(android.view.View view, int visibility)
public static boolean setAlpha(android.view.View view, float alpha)
public static android.graphics.drawable.Drawable createDrawableSelector(android.graphics.drawable.Drawable draw, android.graphics.drawable.Drawable drawPressed)
public static boolean hasNULLView(android.view.View... views)
public static int calculateAlphaValue(int c1, int c2, int alpha)
public static void setGenderBackground(android.view.View view, java.lang.String gender)
view
- gender
- AccountInfo.getGenderId()
public static android.graphics.Bitmap getCircleBitmap(android.graphics.Bitmap bitmap)
bitmap
- 原图片public static java.lang.String getFromAppText(java.lang.String fromApp)