RecyclerViewの項目の色を変更しようとしています。以下のコードは、アイテムレイアウトのルートレイアウトであるRelativeLayoutのみを示しています。MvxBindでBackgroundColorを設定できません
(項目)のレイアウト:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="@+id/item_listitem"
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:paddingStart="@dimen/margin_left_shoppinglistitems"
android:paddingEnd="@dimen/margin_medium"
local:MvxBind="BackgroundColor NativeColor(Background)">
...
</RelativeLayout>
ビューモデル:
public class ListItem : TableData, IListItem
{
...
public MvxColor Background { get { return new MvxColor(255,189,69,128); } }
...
}
I追加したMvvmCross.Plugin.Colorの両方ドロイドとコアプロジェクト
私は、次のコードを持っています。なぜこれが機能していないのか分かりません。 Backgroundプロパティがアクセスされているのを見ることができますが、色は設定されたテスト値に設定されていません(将来は別のブール値プロパティに基づいて色を設定します)。何か案は?