我有一个kotlin图书馆FlowLayout lib as aar,
and want to use it in my java code (android) but can not to resolve kotlin.Pair
.
FlowLayoutManager layoutManager=new FlowLayoutManager(3, RecyclerView.HORIZONTAL, new FlowLayoutManager.Interface() {
@Override
public kotlin.Pair<Integer, Integer> getProportionalSizeForChild(int i) {
return null;
}
});
我试了android.support.v4.util.Pair
次,但不兼容.如何在java代码中使用kotlin库及其对象依赖关系?