Xamarin.android 如何从AAR绑定库中扩展UI控件?
我已经根据从.AAR库创建了一个AAR Bingind库。 它包含一个自定义UI控件 当我尝试给控制装置充气时:Xamarin.android 如何从AAR绑定库中扩展UI控件?,xamarin.android,aar,Xamarin.android,Aar,我已经根据从.AAR库创建了一个AAR Bingind库。 它包含一个自定义UI控件 当我尝试给控制装置充气时: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:multi=
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:multi="clr-namespace:PL.Openrnd.Multilevellistview;assembly=MultiLevelListAarBinding"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<multi:MultiLevelListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:alwaysExtended="false"
app:nestType="multiple">
</multi:MultiLevelListView >
</LinearLayout>
我还尝试了完整的命名空间:
<PL.Openrnd.Multilevellistview.MultiLevelListView...
事实证明,名称空间必须小写
<pl.openrnd.multilevellistview.MultiLevelListView...
<pl.openrnd.multilevellistview.MultiLevelListView...