【问题标题】:ConstraintLayout Optimize detailConstraintLayout 优化细节
【发布时间】:2018-10-29 18:29:19
【问题描述】:

ConstraintLayoutlayout_optimizationLevel 对子视图有效吗?

例如:app:layout_optimizationLevel="standard"TextView 有效吗?

<android.support.constraint.ConstraintLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_optimizationLevel="standard">

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"/>

</android.support.constraint.ConstraintLayout>

【问题讨论】:

标签: android optimization android-constraintlayout


【解决方案1】:

layout_optimizationLevel 用于ConstraintLayout 的参数,用于在其中布置视图。不适用于视图本身。

您可以阅读更多关于它的信息here

【讨论】:

  • tks,我没注意到。
  • @ImagineOwl 如果对您有帮助,请随时接受答案
猜你喜欢
  • 1970-01-01
  • 2010-11-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-09
  • 1970-01-01
  • 1970-01-01
  • 2014-11-14
相关资源
最近更新 更多