2017-05-29 20 views
1

このコードスニペットでは、tools:layout_constraintTop_creator属性を "1"に設定するとはどういう意味ですか?Android ConstraintLayoutでは、tools:layout_constraintTop_creator属性は何ですか?

<TextView 
    android:text="@string/passenger_label" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:id="@+id/textViewPassengerLabel" 
    android:textAppearance="@style/TextAppearance.AppCompat.Caption" 
    android:letterSpacing="0.5" 
    app:layout_constraintLeft_toLeftOf="parent" 
    app:layout_constraintTop_toTopOf="parent" 
    android:layout_marginStart="16dp" 
    android:layout_marginTop="16dp" 
    android:layout_marginLeft="16dp" 
    tools:layout_constraintTop_creator="1" 
    tools:layout_constraintLeft_creator="1" /> 

答えて

0

名前空間が(ツール:layout_constraintTop_creator)を暗示するように、それは純粋にAndroidのメーカーが使用しています - xmlファイルをデバイスにプッシュされている場合(名前空間のツールを使用して)これらの属性は、実際に取り除かれています。あなたはメーカーがそれらを使用する方法を知りたい場合は

だから、それは使用するべきではありません:)

は今、それは実際に簡単です:私たちは、作成者は、彼らがしている場合は特に、制約を作成した人を追跡するために属性を使用します推論エンジンによって作成されたものであり、場合によってはそれらをスクラップ/置き換えたいからです。

関連する問題