Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以获得设备的像素深度(颜色数)。使用 DisplayMetrics 可以知道分辨率...
DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics);
但是我在哪里可以找到像素深度?