Академический Документы
Профессиональный Документы
Культура Документы
Facebook Twitter
दो इस Post म हम Android Studio पर PDF Book App बनाना सीखगे PDF Book App बनाने के लए
नीचे दी गई वी डयो को Complete देखे
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 1/6
5/31/2020 Create Pdf Book App in Android Studio || Download Free Pdf Book Source Code
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/study1"
android:layout_width="330dp"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="40dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="40dp"
android:text="Study 1"
android:textStyle="bold"
android:textColor="@android:color/white"
android:background="@drawable/rounded_corner"/>
<Button
android:id="@+id/study2"
android:layout_width="330dp"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="40dp"
android:layout_marginTop="80dp"
android:layout_marginEnd="40dp"
android:text="Study 2"
android:textStyle="bold"
android:textColor="@android:color/white"
android:background="@drawable/rounded_corner"/>
<Button
android:id="@+id/study3"
android:layout_width="330dp"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="40dp"
android:layout_marginTop="140dp"
android:layout_marginEnd="40dp"
android:text="Study 3"
android:textStyle="bold"
android:textColor="@android:color/white"
android:background="@drawable/rounded_corner"/>
</RelativeLayout>
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 2/6
5/31/2020 Create Pdf Book App in Android Studio || Download Free Pdf Book Source Code
<corners android:radius="50dp"/>
<solid android:color="#009688"/>
</shape>
Button study1;
Button study2;
Button study3;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
});
}
});
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 3/6
5/31/2020 Create Pdf Book App in Android Studio || Download Free Pdf Book Source Code
study3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this,Study3Activity.class);
startActivity(intent);
}
});
}
}
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
<com.github.barteksc.pdfviewer.PDFView
android:id="@+id/pdfView1"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
PDFView study1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_study1);
study1=(PDFView) findViewById(R.id.pdfView1);
study1.fromAsset("part1.pdf").load();
}
}
PDFView study2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_study2);
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 4/6
5/31/2020 Create Pdf Book App in Android Studio || Download Free Pdf Book Source Code
study2=(PDFView) findViewById(R.id.pdfView2);
study2.fromAsset("part2.pdf").load();
}
}
PDFView study3;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_study3);
study3=(PDFView) findViewById(R.id.pdfView3);
study3.fromAsset("part3.pdf").load();
}
}
Facebook Twitter
1 Comments
Jmj hkm
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 5/6
5/31/2020 Create Pdf Book App in Android Studio || Download Free Pdf Book Source Code
Reply
Publish Preview
ABOUT US
https://www.myspecialtechsupport.online/2020/04/create-pdf-book-app-in-android-studio.html 6/6