Android 获取dimen值

时间:2015-07-02 12:28:51   收藏:0   阅读:1215

int dip = (int) TypedValue.applyDimension(

TypedValue.COMPLEX_UNIT_DIP, 70,

getResources().getDisplayMetrics());


评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!