android studio 2.1を使用して、Androidで最新のデータバインディングを使用しています。 visibilityタグを次のコードのように使用してエラーを受け取ります。データバインディングで可視性が動作しないandroid
java.lang.RuntimeException:データバインディングエラーが見つかりました。 /データバインディングエラー**** msg:識別子にはXMLファイルのユーザー定義型が必要です。ビューはそれを ファイルが欠落しています:D:\ HP \ HealthPortal_Androidコード\ \アプリ\ SRC \メイン\ RES \レイアウト\のcardview_image_twotextview.xml LOC:68:90 - 68:93 \データバインディングエラー
<TextView
android:id="@+id/card_sub_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/card_title"
android:layout_marginLeft="@dimen/carview_margin"
android:layout_toRightOf="@+id/card_image"
android:text="@{toolsAndTrackersCards.subtitle}"
android:textColor="@color/black"
android:textSize="20sp"
android:visibility="@{toolsAndTrackersCards.subtitle.equals(@string/Empty_String) ? View.VISIBLE : View.GONE}"
/>
解決策を見つけるためにいくつかのGoogleを終了しないでください。 @ string/Empty_Stringは、string.xmlファイルの空の文字列 ""として定義されています。どこで間違っているのか。
Android data binding, Radio Button not updating