📅  最后修改于: 2022-03-11 15:00:56.942000             🧑  作者: Mango
public void setPDF(String asset,int pages)
{
pdfView.fromAsset(asset).swipeHorizontal(true).onLoad(new OnLoadCompleteListener() {
@Override
public void loadComplete(int nbPages)
{
pdfView.fitToWidth(0); // Goto to specific page
pdfView.setMinZoom(60);
pdfView.setMidZoom(80);
pdfView.setMaxZoom(100);
progressBar.setVisibility(View.GONE);
}
}).defaultPage(pages).enableAntialiasing(true).load();
}