Beispiel #1
0
 public static int getScaleHeight(Context mContext, float scale) {
   return (int) (scale * ScreenUtil.getScreenHeight(mContext));
 }
Beispiel #2
0
 public static int getRealHeight(Context mContext, int scale) {
   return (int) ((1f / scale) * ScreenUtil.getScreenHeight(mContext));
 }
Beispiel #3
0
 public static int getScaleWidth(Context mContext, float scale) {
   return (int) (scale * ScreenUtil.getScreenWidth(mContext));
 }
Beispiel #4
0
 public static int getRealWidth(Context mContext, int scale) {
   return (int) ((1f / scale) * ScreenUtil.getScreenWidth(mContext));
 }