2

Is the ConstraintLayout's layout_optimizationLevel valid for subviews?

eg: app:layout_optimizationLevel="standard" is effect for 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>
Ümañg ßürmån
  • 9,695
  • 4
  • 24
  • 41
ImagineOwl
  • 23
  • 2

1 Answers1

0

layout_optimizationLevel is for parameters of ConstraintLayout that are used for laying out Views within it. Not for the View itself.

You can read some more about it here.

Bartek Lipinski
  • 30,698
  • 10
  • 94
  • 132