• Set android:baselineAligned="false" on this element for better performance
    • 如果LinearLayout被用于嵌套的layout空间计算,它的android:baselineAligned属性应该设置成false,以加速layout计算
    • android:baselineAligned="false"
  • This LinearLayout layout or its RelativeLayout parent is useless;
    • 多余的Linearlayout或者RelativeLayout
    • 删除即可
  • This tag and its children can be replaced by one and a compound   drawable
    • 有时候我们可能会用imagetextview组合,但其实image是没必要的,textview提供了一个属性来给它设置image
    • android:drawable="@drawable/resource"
  • Use a layout_height of 0dip instead of wrap_content for better   performance
    • 当在一个linearlayout布局中为一个控件设置weight属性时,这个组件会默认填充剩余空间
    • 去掉weight属性或者修改wrap_content0dp

更多相关文章

  1. 今天遇到的几个xml属性
  2. Android Property Animation属性动画初识:透明渐变(1)
  3. android:EditText属性/去边框
  4. 关于ellipsize属性使用的一些细节
  5. View控件Edittext属性

随机推荐

  1. Android加速度传感器
  2. Android IDL 小例子
  3. [置顶] Android 系列:安装Android SDK出现
  4. Android解析XML
  5. 关于android创建对话框报错The method se
  6. Android adb获取屏幕分辨率
  7. Android LinearLayout遇到的坑
  8. android 获取应用列表 点击打开应用
  9. Android Activity界面切换添加动画特效
  10. Android SDK的更新相关