摘要: 布局优化 布局优化的思想很简单,就是尽量减少布局文件的层级。 如何进行布局优化呢?首先是删除布局中无用的空间和层级,其次有选择地使用性能较低的 ViewGroup,比如 RelativeLayout 的性能比起 LinearLayout 和 FrameLayout 就不是很好。 利用 Relativ 阅读全文
posted @ 2016-09-27 22:42 勇敢的少年啊 阅读(170) 评论(0) 推荐(0) 编辑
摘要: API | 背包 | | | | | | public class Bag implements Iterable | | | Bag() | 创建一个空背包 | | void add(Item item) | 添加一个元素 | | boolean isEmpty() | 背包是否为空 | | in 阅读全文
posted @ 2016-09-27 21:51 勇敢的少年啊 阅读(156) 评论(0) 推荐(0) 编辑