android UI布局的性能优化小结

  1. 在LinearLayout中慎用layout_weight;
  2. 减少布局的层次;
  3. 去除不用的布局;
  4. 去除不用或者是累赘的的父控件;
  5. 使用compound drawables;
  6. 使用include,merge,ViewStub 标签;
  7. 背景的优化;

你可能感兴趣的:(android UI布局的性能优化小结)