|
1
Linux 特色 负载?
|
|
2
负载不是那三个数字吗?而且看起来三个数字跟色块长度也不一致啊
|
|
3
normal/kernel/io-wate
|
|
4
http://androidxref.com/4.4.4_r1/xref/frameworks/base/packages/SystemUI/src/com/android/systemui/LoadAverageService.java
139 mIrqPaint = new Paint(); 140 mIrqPaint.setARGB(0x80, 0, 0, 0xff); 141 mIrqPaint.setShadowLayer(2, 0, 0, 0xff000000); 142 mSystemPaint = new Paint(); 143 mSystemPaint.setARGB(0x80, 0xff, 0, 0); 144 mSystemPaint.setShadowLayer(2, 0, 0, 0xff000000); 145 mUserPaint = new Paint(); 146 mUserPaint.setARGB(0x80, 0, 0xff, 0); 147 mSystemPaint.setShadowLayer(2, 0, 0, 0xff000000); 148 183 final int userTime = stats.getLastUserTime(); 184 final int systemTime = stats.getLastSystemTime(); 185 final int iowaitTime = stats.getLastIoWaitTime(); 186 final int irqTime = stats.getLastIrqTime(); 187 final int softIrqTime = stats.getLastSoftIrqTime(); 188 final int idleTime = stats.getLastIdleTime(); 194 int userW = (userTime*W)/totalTime; 195 int systemW = (systemTime*W)/totalTime; 196 int irqW = ((iowaitTime+irqTime+softIrqTime)*W)/totalTime; 202 if (irqW > 0) { 203 canvas.drawRect(x-irqW, top, x, bottom, mIrqPaint); 204 x -= irqW; 205 } 206 if (systemW > 0) { 207 canvas.drawRect(x-systemW, top, x, bottom, mSystemPaint); 208 x -= systemW; 209 } 210 if (userW > 0) { 211 canvas.drawRect(x-userW, top, x, bottom, mUserPaint); 212 x -= userW; 213 } |
|
prightSep 3, 2014
5
貌似没有黄色
|
|
arfaWongNov 6, 2014
6
什么字体? 很好看的样子
|
|
7
@arfaWong 什么字体? 很好看的样子
看来你有一双能发现宝藏的眼睛~~这个字体我换了上百个字体后才选出最优的字体的,适合我的 MX3。 中文字体: [浪漫雅圆] ,特点:边缘圆滑,尺寸大,大屏手机看上就非常舒服。如果你的手机边框也是圆圆的话,那么我相信是绝配。 英文字体: [新雅兰] 。特点:尺寸大,每个英文字母清晰可见,看起来完全不累。 如图,左边中文是“浪漫雅圆”,左边英文和右边英文都是“新雅兰”。 |