摘要: 1.边界限定不要写 if else 了,使用Math.min 和Math.max,如AdapterView -- findSyncPosition()代码:seed = Math.max(0, seed);seed = Math.min(count - 1, seed); 阅读全文
posted @ 2015-11-05 11:03 力能扛鼎 阅读(160) 评论(0) 推荐(0) 编辑