膨胀类PlotView时出错

时间:2013-12-17 20:28:56

标签: android mono oxyplot

我正在尝试在android上使用oxyplot,我收到错误“错误膨胀类PlotView”

我已经构建并引用了OxyPlot.XamarinAndroid,我尝试做的唯一事情就是将其添加到xml中,如下所示:

<PlotView
p1:layout_width="match_parent"
p1:layout_height="150dp"
p1:id="@+id/SmallPlot"
/>

这个图进入TabHost,当我执行“tabs.Setup();”

时抛出异常 你能帮帮我吗?标签可以相关吗?我错过了什么吗? 谢谢。

2 个答案:

答案 0 :(得分:1)

我找到了解决方案:

在AXML中使用的代码是<oxyplot.xamarinandroid.PlotView/>而不是<PlotView/>

答案 1 :(得分:0)

实际上它应该是我认为的底层代码。

  <OxyPlot.Xamarin.Android.PlotView
          android:id="@+id/plotView"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" />