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