px转dp
.setWidth(Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,70,getResources().getDisplayMetrics())))
.setHeight(Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,60,getResources().getDisplayMetrics()))-1);
px转dp
.setWidth(Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,70,getResources().getDisplayMetrics())))
.setHeight(Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,60,getResources().getDisplayMetrics()))-1);
本文标题:px转dp
本文链接:https://www.haomeiwen.com/subject/cruaqxtx.html
网友评论