android : 控件在代码中设置属性-setWidth(int pixels)或setHeight(int pixels)的px与dip转换
---------------------------------------华丽的分割线----------------------------------------- Resourcesresources=getResources();
floatfPx=TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,300,resour