各位开发者,
我正在绑定这个库:
https://github.com/leinardi/FloatingActionButtonSpeedDial
但是我在生成控件时遇到了两个问题:
第一个,我有一个想法,我在 Metadata.xml 中添加了以下代码:
<attr path="/api/package[@name='com.leinardi.android.speeddial']/class[@name='SpeedDialView']/method[@name='getBehavior']" name="GetBehavior"></attr>
但我仍然得到错误:'SpeedDialView' 没有实现接口成员。
另一个问题,我有一个与注释有关的猜测(我已经添加了这个包Xamarin.Android.Support.Annotations),因为不起作用的功能如下:
@ExpansionMode
public int getExpansionMode() {
return mInstanceState.mExpansionMode;
}
因为后来,有一个“接口”(不完全来自我的研究What's the difference between interface and @interface in java?)用这个名字创建并且可能没有被正确重命名:
@Retention(SOURCE)
@IntDef({TOP, BOTTOM, LEFT, RIGHT})
public @interface ExpansionMode {
int TOP = 0;
int BOTTOM = 1;
int LEFT = 2;
int RIGHT = 3;
}
知道如何解决这两个问题吗?我附上了我的项目。