0

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

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

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

此图进入 TabHost,当我执行“tabs.Setup();”时引发异常

你能帮我么?标签可以相关吗?我错过了什么吗?谢谢你。

4

2 回答 2

1

我找到了解决方案:

在 AXML 中使用的标签 is<oxyplot.xamarinandroid.PlotView/>和 not<PlotView/>

于 2013-12-18T09:13:02.937 回答
0

实际上它应该是我相信的底部代码。

  <OxyPlot.Xamarin.Android.PlotView
          android:id="@+id/plotView"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" />
于 2017-09-11T10:54:18.357 回答