自由任我行

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年10月14日

摘要: 有的时候要用到像素,就需要将像素和dp长度进行转换,方法如下 public static int pixelToDp(Context context, int pxValue) { float scale = context.getResources().getDisplayMetri... 阅读全文
posted @ 2015-10-14 10:11 自由任我行 阅读(147) 评论(0) 推荐(0) 编辑