转自: http://www.maxiaoguo.com/shipin/344.html
density = mContext.getResources().getDisplayMetrics().density;
int margin = (int) (density *3.5);
mHolder.playFist.setPadding(margin, margin, margin, margin);
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, width);
mHolder.playFist.setLayoutParams(lp);