예제 #1
0
 public static int getScaleWidth(Context mContext, float scale) {
   return (int) (scale * ScreenUtil.getScreenWidth(mContext));
 }
예제 #2
0
 public static int getRealWidth(Context mContext, int scale) {
   return (int) ((1f / scale) * ScreenUtil.getScreenWidth(mContext));
 }