1
私はconstraint-layout:1.0.0-alpha3依存関係のAndroid Studio 2.2を使用しましたが、今はconstraint-layout:1.0.0- alpha7、 "relativePercent"属性は存在しません。どの属性が "relativePercent"に置き換わるのですか?Android-Studio 2.2で "relativePercent"の代わりに使用する属性
私はconstraint-layout:1.0.0-alpha3依存関係のAndroid Studio 2.2を使用しましたが、今はconstraint-layout:1.0.0- alpha7、 "relativePercent"属性は存在しません。どの属性が "relativePercent"に置き換わるのですか?Android-Studio 2.2で "relativePercent"の代わりに使用する属性
ガイドラインでを使用して、パーセントを使用して位置を設定することができます。
<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"
ありがとう、しかし**アプリ:layout_constraintGuide_end **と**アプリ:layout_constraintGuide_begin **取り組んでいる?? layout_constraintGuide_percent **が動作していない、私はちょうど**アプリがいることがわかり – Dutn
少なくとも、ライブラリcom.android.support.constraintのバージョンalpha6を使用していることを確認してください:constraint-layout:1.0.0-alpha6' – Brian
私は新しいレイアウトを作成しました。できます。しかし、私が以前に作成したレイアウトはそうではありません。私はそれをチェックします。ありがとう – Dutn