(float dipValue)
| 31 | |
| 32 | |
| 33 | public static int px(float dipValue) { |
| 34 | Resources r=Resources.getSystem(); |
| 35 | final float scale =r.getDisplayMetrics().density; |
| 36 | return (int) (dipValue * scale + 0.5f); |
| 37 | } |
| 38 | |
| 39 | |
| 40 | //获取显示版本 |
no outgoing calls
no test coverage detected