setElevation(4 * context.getResources().getDisplayMetrics().density);
setElevation采用像素值.用户TinTran的comment是正确的.