缺少可设置的字段MvxExpandableListView_GroupItemTemplate

时间:2016-03-09 18:09:00

标签: c# xamarin mvvmcross

我注意到在Android上调试时会将以下MvxBind信息消息输出到logcat:

  

缺少可设置的字段MvxExpandableListView_GroupItemTemplate

我尝试将GitHub中的MvxBindingAttributes.xml文件添加到DroidProject \ Resources \ values文件夹,并将Build Action设置为AndroidResource。这会导致每个<declare-stylable> XML标记的编译器错误,如:

  

属性&#34; XXX&#34;已定义

这很有意思,因为它声称MvxGroupItemTemplate在编译时已经定义了,但是当我运行程序时,会显示一条消息,说明它已丢失。

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:2)

我在今天早上更新到最新版本的Xamarin Studio时遇到了同样的问题。现在修复它包括:

<?xml version="1.0" encoding="utf-8" ?>
<resources>
  <declare-styleable name="MvxExpandableListView">
    <attr name="GroupItemTemplate" format="reference"/>
  </declare-styleable>
</resources>

在Resources \ values \ attrs.xml文件中。