Visual StudioでNuGetを使用してXamarin Android Support Design Library(およびそのすべての依存関係)を追加しましたが、AXMLコードでコンポーネントを使用すると、無効です子要素。私が見つけることができたすべてのドキュメンテーションとサンプルから、NuGet経由でパッケージを追加する以外に何か追加の必要がないように思えます。ソリューションエクスプローラのReferencesフォルダにあるすべてのライブラリを見ることができます。XamarinのAndroidサポートデザインライブラリが利用できません
私は信じられないほどシンプルなものを見逃していると確信していますが、間違っているものは見つかりません。どんな助けもありがとう。ありがとう!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:p1="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
p1:orientation="vertical"
p1:layout_width="match_parent"
p1:layout_height="match_parent">
<ImageView
p1:src="@drawable/boxlogo"
p1:layout_width="match_parent"
p1:layout_height="wrap_content"
p1:id="@+id/boxLogo" />
<android.support.design.widget.TextInputLayout
p1:layout_width="match_parent"
p1:layout_height="wrap_content">
<EditText
p1:layout_width="match_parent"
p1:layout_height="wrap_content"
p1:id="@+id/sku"
p1:hint="@string/sku" />
</android.support.design.widget.TextInputLayout>
...
</LinearLayout>
私は私のC#コードでライブラリにアクセスできるようにしていますandroid.support.design.widget.TextInputLayout
とタグのエラーを取得します。
どのようなエラーがありますか? EditTextの代わりに[TextInputEditText](https://developer.android.com/reference/android/support/design/widget/TextInputEditText.html)を使用する必要がありますか? –
"要素 'LinearLayout'に無効な子要素があります。 'android.support.design.widget.TextInputLayout'"は私が得るエラーです。 Xamarin Blogは、 'EditText'(https://blog.xamarin.com/add-beautiful-material-design-with-the-android-support-design-library/)の例を示していますが、 'android.support .design.widget.TextInputEditText 'は動作しません。 –