I have a kotlin library 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;
}
});
I have tried android.support.v4.util.Pair
but is not compatible. How can I use a kotlin lib in java code with their object dependencies?