Create a book app in Android Studio
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<com.github.barteksc.pdfviewer.PDFView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/pdfbook">
</com.github.barteksc.pdfviewer.PDFView>
LinearLayout
PDFView pdfView;
PDFView pdfView= (PDFView) findViewById(R.id.pdfbook);
pdfView.fromAsset("Appstips.pdf").load();
https://youtu.be/YBlIS9Ysd74
No comments:
Post a Comment