2013-12-17 63 views
0

我試圖在Android上使用oxyplot,我得到的錯誤「錯誤充氣類PlotView」錯誤充氣類PlotView

我已經構建並引用OxyPlot.XamarinAndroid,我嘗試做的唯一事情是它添加在這樣的XML:

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

該地塊進入一個TabHost,並且異常被拋出時,我做了「tabs.Setup();」

你能幫我嗎?標籤可以關聯嗎?我錯過了什麼嗎? 謝謝。

+0

你可以發佈整個佈局嗎?什麼是plotview軟件包? – Blackbelt

回答

1

我已經找到了解決辦法:

在AXML使用標籤<oxyplot.xamarinandroid.PlotView/>而不是<PlotView/>

0

實際上它應該是底部的代碼,我相信。

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