使用Android-Pdf-Viewer-Library开源框架
来源:互联网 发布:反监听软件 编辑:程序博客网 时间:2024/06/11 10:04
下面的框架是Android-Pdf-Viewer-Library这个开源框架的使用方法,在github中找到的,是一些比较简单的英语,应该可以看懂。
This is a packaging of the project "Android PDF Viewer" (http://andpdf.sourceforge.net/) into a reusable library to make PDF viewing easier from within your Android application.Consistent with the Android PDF Viewer project, the licensing for the PdfViewer project is LGPLQuickstart incorporating a PDF viewing activity into your project:1) Add PdfViewer.jar into your project's build path2) Copy the following drawable resources from PdfViewer/res/drawable into YourProject/res/drawable left_arrow.png right_arrow.png zoom_in.png zoom_out.png3) Copy the following layout resources from PdfViewer/res/layout into YourProject/res/layout dialog_pagenumber.xml pdf_file_password.xml4) Derive your PDF activity from net.sf.andpdf.pdfviewer.PdfViewerActivity5) Using the default drawables and layouts: public int getPreviousPageImageResource() { return R.drawable.left_arrow; } public int getNextPageImageResource() { return R.drawable.right_arrow; } public int getZoomInImageResource() { return R.drawable.zoom_in; } public int getZoomOutImageResource() { return R.drawable.zoom_out; } public int getPdfPasswordLayoutResource() { return R.layout.pdf_file_password; } public int getPdfPageNumberResource() { return R.layout.dialog_pagenumber; } public int getPdfPasswordEditField() { return R.id.etPassword; } public int getPdfPasswordOkButton() { return R.id.btOK; } public int getPdfPasswordExitButton() { return R.id.btExit; } public int getPdfPageNumberEditField() { return R.id.pagenum_edit; }6) Invoke your PdfViewActivity derived with the following code: Intent intent = new Intent(this, YourPdfViewerActivity.class); intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME, "PATH TO PDF GOES HERE"); startActivity(intent);
0 0
- 使用Android-Pdf-Viewer-Library开源框架
- Eclipse NightLabs PDF Viewer 插件使用
- android开源图表框架HelloChart的使用 (hellocharts-library-1.5.8.jar)
- 如何使用开源library?(Android)
- android 资源(开源项目、library,框架{完善中})
- Android Hierarchy Viewer的使用
- android 如何使用hierarchy viewer
- Android studio 使用Hierarchy Viewer
- android-pdf-viewer在android studio应用问题说明
- CentOS使用 Document Viewer查看pdf文档乱码解决办法
- HTML5 pdf viewer pdf.js
- android Tools之Hierachy Viewer的使用
- Android之Hierarchy Viewer工具使用
- 在Android Studio下使用Hierarchy Viewer
- 在Android Studio下使用Hierarchy Viewer
- Android 使用Hierarchy Viewer优化布局
- 在Android Studio下使用Hierarchy Viewer
- 在Android Studio下使用Hierarchy Viewer
- MySQL管理工具---phpAdmin
- 数模搭配上春运(My First Blog)
- vector的用法
- Floyd's cycle-finding algorithm
- 数据结构之双向循环链表
- 使用Android-Pdf-Viewer-Library开源框架
- iOS 限制textField字节长度
- 注意头文件规则,避免链接错误:重复定义(multiple defination)
- 图
- 【转】使用gdb和core dump迅速定位段错误
- 1011. World Cup Betting (20)
- C语言解决大数的阶层问题
- 第一行代码-3.7 编写界面的最佳实践
- 数据结构--动态规划