DP转px
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, getResources().getDisplayMetrics());
直接获取px,换成
TypedValue.COMPLEX_UNIT_PX