请教,如何在xamarin.forms项目中接入第三方公司的SDK,我下载的压缩包里面有apk有jar和libs文件夹里面包含jar和aar,如何将这些集成SDK接入xamarin.froms项目,若能接入成功又如何调用?
依赖好后,就可以直接使用了,当然在代码中,需要先引用包名
using Com.Squareup.Picasso;
然后在调用方法:
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Main);
ImageView imageView = FindViewById<ImageView>(Resource.Id.imageView);
// Use the Picasso jar library to load and display this image:
Picasso.With (this)
.Load ("http://i.imgur.com/DvpvklR.jpg")
.Into (imageView);
}
}
运行效果: