本文整理汇总了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);
}
开发者ID:jay16,项目名称:shengyiplus-android,代码行数:23,代码来源:SubjectActivity.java
示例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);
}
开发者ID:JiaWenQing,项目名称:android-pdfview-master,代码行数:11,代码来源:DragPinchManager.java
示例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);
}
开发者ID:Cedgetec,项目名称:SchulinfoApp-android,代码行数:16,代码来源:PDFFragment.java
示例4: AnimationManager
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
public AnimationManager(PDFView pdfView) {
this.pdfView = pdfView;
}
开发者ID:JiaWenQing,项目名称:android-pdfview-master,代码行数:4,代码来源:AnimationManager.java
示例5: DecodingAsyncTask
import com.joanzapata.pdfview.PDFView; //导入依赖的package包/类
public DecodingAsyncTask(Uri uri, PDFView pdfView) {
this.cancelled = false;
this.pdfView = pdfView;
this.uri = uri;
}
开发者ID:JiaWenQing,项目名称:android-pdfview-master,代码行数:6,代码来源:DecodingAsyncTask.java
示例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);
}
开发者ID:byteShaft,项目名称:book-reader,代码行数:7,代码来源:MainActivity.java
注:本文中的com.joanzapata.pdfview.PDFView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论