Create a book app in Android Studio

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();

 

 


 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *