2016-08-17 7 views

答えて

1

ガイドラインで​​を使用して、パーセントを使用して位置を設定することができます。

<android.support.constraint.Guideline 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:id="@+id/guideline1" 
    android:orientation="vertical" 
    app:layout_constraintGuide_percent="0.70"/> 

たとえば、コンポーネントのレイアウト制約のターゲットとして、ガイドラインを使用できます。

app:layout_constraintLeft_toLeftOf="@+id/guideline1" 
+1

ありがとう、しかし**アプリ:layout_constraintGuide_end **と**アプリ:layout_constraintGuide_begin **取り組んでいる?? layout_constraintGuide_percent **が動作していない、私はちょうど**アプリがいることがわかり – Dutn

+1

少なくとも、ライブラリcom.android.support.constraintのバージョンalpha6を使用していることを確認してください:constraint-layout:1.0.0-alpha6' – Brian

+0

私は新しいレイアウトを作成しました。できます。しかし、私が以前に作成したレイアウトはそうではありません。私はそれをチェックします。ありがとう – Dutn

関連する問題