在XML中添加自定义类视图

时间:2015-06-18 21:14:23

标签: android xml

我有以下xml源

 <View
 android:layout_width="fill_parent"
 android:layout_height="150dp"
 android:id="@+id/plotViewModel" />

如果我使用View,那么我可以在内容上正确看到我的所有其他观点。

由于我的观点是oxyplot(类),因此我在xml内直接更改了它。但是,现在我的内容页面确实正确地放置了其他视图。但是,当我构建并运行项目时,它会正确加载。我想知道还有其他办法吗?

 <oxyplot.xamarin.android.PlotView
 android:layout_width="fill_parent"
 android:layout_height="150dp"
 android:id="@+id/plotViewModel" />

0 个答案:

没有答案