我想为我的Xamarin Android项目使用MuPDF阅读器。 我试图在我的相对布局Xamarin安卓视图pdf格式使用Mupdf
这里查看PDF是我相对布局代码
<RelativeLayout
android:id="@+id/mupdf_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</RelativeLayout>
,这里是主要胡亚蓉
SetContentView(Resource.Layout.Main);
RelativeLayout mupdfWrapper = FindViewById<RelativeLayout>(Resource.Id.mupdf_wrapper);
MuPDFCore core = new MuPDFCore(this, "test.pdf");
MuPDFReaderView reader = new MuPDFReaderView(this);
reader.Adapter = new MuPDFPageAdapter(this, new FilePicker.IFilePickerSupport() , core);
mupdfWrapper.AddView(reader);
mupdfWrapper.AddView(reader);
但我在这里得到错误
“无法创建抽象类或接口的文件”File picker .iflepickersupport“
任何人都可以帮助我解决这个问题,请。
在此先感谢。
*你得到了什么*错误? – JosephH
谢谢,在这行reader.Adapter = new MuPDFPageAdapter(this,new FilePicker.IFilePickerSupport(),core);它说“不能创建一个抽象类或接口istance”文件选择器.iflepickersupport'“ –