//把sp转成px private int sp2px(int sp) { return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX,sp, getResources().getDisplayMetrics()); }
//把sp转成px private int sp2px(int sp) { return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX,sp, getResources().getDisplayMetrics()); }