将dp转为px
private int dp2px(int dpValue){
float scale = this.getResources().getDisplayMetrics().density;
return (int) (dpValue*scale);
}
private int dp2px(int dpValue){
float scale = this.getResources().getDisplayMetrics().density;
return (int) (dpValue*scale);
}