🌈 搜索
📅  最后修改于: 2022-03-11 14:59:54.199000             🧑  作者: Mango
final float scale = getContext().getResources().getDisplayMetrics().density; int pixels = (int) (dps * scale + 0.5f);