本文整理汇总了Java中com.joanzapata.pdfview.PDFView类的典型用法代码示例。如果您正苦于以下问题:Java PDFView类的具体用法?Java PDFView怎么用?Java PDFView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PDFView类属于com.joanzapata.pdfview包,在下文中一共展示了PDFView类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initActiongBar
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
private void initActiongBar(){
bannerView = (RelativeLayout) findViewById(R.id.actionBar);
ImageView mBannerSetting = (ImageView) findViewById(R.id.bannerSetting);
mTitle = (TextView) findViewById(R.id.bannerTitle);
/*
* Intent Data || JSON Data
*/
Intent intent = getIntent();
link = intent.getStringExtra(URLs.kLink);
bannerName = intent.getStringExtra(URLs.kBannerName);
objectID = intent.getIntExtra(URLs.kObjectId, -1);
objectType = intent.getIntExtra(URLs.kObjectType, -1);
isInnerLink = link.indexOf("template") > 0 && link.indexOf("group") > 0;
mTitle.setText(bannerName);
if (link.toLowerCase().endsWith(".pdf")) {
mPDFView = (PDFView) findViewById(R.id.pdfview);
mPDFView.setVisibility(View.INVISIBLE);
}
mBannerSetting.setVisibility(View.VISIBLE);
}
示例2: DragPinchManager
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
public DragPinchManager(PDFView pdfView) {
this.pdfView = pdfView;
this.isSwipeEnabled = false;
this.swipeVertical = pdfView.isSwipeVertical();
dragPinchListener = new DragPinchListener();
dragPinchListener.setOnDragListener(this);
dragPinchListener.setOnPinchListener(this);
dragPinchListener.setOnDoubleTapListener(this);
pdfView.setOnTouchListener(dragPinchListener);
}
示例3: createView
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
@Override
public void createView(LayoutInflater inflater, ViewGroup vg) {
LinearLayout ll = (LinearLayout) vg.findViewById(R.id.pdf_content);
ll.removeAllViews();
pdf = new PDFView(getContext(), null);
pdf.setId(R.id.pdfview);
pdf.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
File file = ((StaticData) getFragment().getData()).getFile();
if(file.exists() && file.length() > 0)
pdf.fromFile(file).enableSwipe(true).load();
else
Log.w("ggvp", file + " does not exist");
ll.addView(pdf);
}
示例4: AnimationManager
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
public AnimationManager(PDFView pdfView) {
this.pdfView = pdfView;
}
示例5: DecodingAsyncTask
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
public DecodingAsyncTask(Uri uri, PDFView pdfView) {
this.cancelled = false;
this.pdfView = pdfView;
this.uri = uri;
}
示例6: onCreate
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mPdfView = (PDFView) findViewById(R.id.pdfview);
}