Pregunta

i am trying to use oxyplot on android, and i am getting the error "error inflating class PlotView"

i have built and referenced OxyPlot.XamarinAndroid, and the only thing i try to do is add it in the xml like this:

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

this plot goes into a TabHost, and exception is thrown when i do the "tabs.Setup();"

Can you please help me? Could the Tabs be related? Am i missing something? Thank you.

¿Fue útil?

Solución

i have found the solution:

the tag to use in the AXML is <oxyplot.xamarinandroid.PlotView/> and not <PlotView/>

Otros consejos

Actually it should be the bottom code I believe.

  <OxyPlot.Xamarin.Android.PlotView
          android:id="@+id/plotView"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" />
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top