Xamarin.AndroidでConstraintLayoutを使用する

提供: MonoBook
ナビゲーションに移動 検索に移動

NuGetから以下をぶち込め。

Xamarin.Android.Support.Constraint.Layout


NuGetをぶち込んだら早速使ってみる。

<?xml version="1.0" encoding="utf-8"?>
<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"
    tools:context=".activities.AboutActivity">

</android.support.constraint.ConstraintLayout>


ビルドエラーが出なければ大丈夫。

以上。