Android開發經常使用工具類

AndroidUtiljava /** * 根據手機的分辨率從 dp 的單位 轉成爲 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics()
相關文章
相關標籤/搜索