0
私はを持っています "データは参照できません"データバインディングを使用してレイアウト内のバイナリ演算子を使用してセットアップフラグを試みるとエラーが発生します。バイナリのオペランドのintを参照解除することはできません。データバインディングバイナリ演算子
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools">
<data>
<variable
name="textState"
type="java.lang.Integer"/>
</data>
<android.support.v7.widget.AppCompatCheckBox
android:id="@+id/checkbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Text"
app:paintFlags="@{checkbox.getPaintFlags() | textState.intValue()}"/>
</layout>