ConstraintLayout总结

    xiaoxiao2021-03-26  34

    具体使用方法参考郭霖的博客,有详细说明http://blog.csdn.net/guolin_blog/article/details/53122387 1.    优点      1.     可视化拖动编辑      2.    配合 Guidelines将屏幕分块依赖,减少布局层级      3.    自动添加依赖方便 2.    缺点      1.    依赖复杂,不易维护      2.    页面控件较多时,在可视化页面中单独修改某一个控件不易控制      3.    在layout文件中选择控件在preview页面没有高亮,不利于细节修改,只能使用可视化编辑,不方便在layout中修改 3.    使用      1.    app/build.gradle中添加依赖           dependencies { compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4' }      2.    layout文件中直接使用            android.support.constraint.ConstraintLayout
    转载请注明原文地址: https://ju.6miu.com/read-664017.html

    最新回复(0)