摘要:
1 /** 2 * 手机分辨率转化类 3 */ 4 package com.wu.mynews.util; 5 6 import android.content.Context; 7 8 public class DensityUtil { 9 10 /**11 * 根据手机的分辨率从 dp 的单位 转成为 px(像素)12 * @param context13 * @param dpValue14 * @return15 */16 public static int dip2px(Context contex... 阅读全文