Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore ปริญญานิพนธ์

ปริญญานิพนธ์

Published by phuriphat piromkid, 2022-03-01 13:20:19

Description: ปริญญานิพนธ์

Search

Read the Text Version

92 ImageButton ic13=findViewById(R.id.btn13); ic13.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent=new Intent(menu3.this,game9.class); startActivity(intent); } }); } }

93 คาส่ัง activity_game1.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game1\"> <WebView android:id=\"@+id/webviewt1\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

94 คาสั่งหน้า game1 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game1 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game1); webView = (WebView) findViewById(R.id.webviewt1); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13326/573/486\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

95 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

96 คาสั่ง activity_game2.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game2\"> <WebView android:id=\"@+id/webview2\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

97 คาสั่งหน้า game2 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game2 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game2); webView = (WebView) findViewById(R.id.webview2); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13335/303/479\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true);

98 } @Override public void onBackPressed() { if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

99 คาสั่ง activity_game3.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game3\"> <WebView android:id=\"@+id/webview3\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

100 คาส่ังหน้า game3 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game3 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game3); webView = (WebView) findViewById(R.id.webview3); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13337/757/539\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

101 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

102 คาส่ัง activity_game4.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game4\"> <WebView android:id=\"@+id/webview4\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

103 คาสั่งหน้า game4 import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game4 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game4); webView = (WebView) findViewById(R.id.webview4); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13327/015/831\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

104 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

105 คาส่ัง activity_game5.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game5\"> <WebView android:id=\"@+id/webview5\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

106 คาส่ังหน้า game5 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game5 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game5); webView = (WebView) findViewById(R.id.webview5); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13336/505/625\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

107 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

108 คาส่ัง activity_game6.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game6\"> <WebView android:id=\"@+id/webview6\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

109 คาส่ังหน้า game6 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game6 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game6); webView = (WebView) findViewById(R.id.webview6); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13338/888/388\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

110 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

111 คาส่ัง activity_game7.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game7\"> <WebView android:id=\"@+id/webview7\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

112 คาส่ังหน้า game7 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game7 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game7); webView = (WebView) findViewById(R.id.webview7); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13327/338/825\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

113 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

114 คาส่ัง activity_game8.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game8\"> <WebView android:id=\"@+id/webview8\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

115 คาส่ังหน้า game8 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game8 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game8); webView = (WebView) findViewById(R.id.webview8); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13337/166/136\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

116 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

117 คาส่ัง activity_game9.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game9\"> <WebView android:id=\"@+id/webview9\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

118 คาส่ังหน้า game9 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class game9 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game9); webView = (WebView) findViewById(R.id.webview9); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13339/584/749\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

119 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

120 คาส่ัง activity_game10.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".game10\"> <WebView android:id=\"@+id/webview10\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

121 คาสั่งหน้า game10 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.ImageButton; public class game10 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game10); webView = (WebView) findViewById(R.id.webview10); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13328/840/500\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

122 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

123 คาสั่ง activity_tests.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <androidx.constraintlayout.widget.ConstraintLayout 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=\".tests\"> <com.airbnb.lottie.LottieAnimationView android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" android:scaleType=\"centerCrop\" app:layout_constraintBottom_toBottomOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\" app:layout_constraintHorizontal_bias=\"0.0\" app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintTop_toTopOf=\"parent\" app:layout_constraintVertical_bias=\"0.0\" app:lottie_autoPlay=\"true\" app:lottie_fileName=\"back3.json\" app:lottie_loop=\"true\" /> <ImageButton android:id=\"@+id/btnt1\"

124 android:layout_width=\"325dp\" android:layout_height=\"129dp\" android:backgroundTint=\"#00FFFFFF\" app:layout_constraintBottom_toBottomOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\" app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintTop_toTopOf=\"parent\" app:layout_constraintVertical_bias=\"0.177\" app:srcCompat=\"@drawable/btn1\" /> <ImageButton android:id=\"@+id/btnt2\" android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\" android:backgroundTint=\"#00FFFFFF\" app:layout_constraintBottom_toBottomOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\" app:layout_constraintHorizontal_bias=\"0.494\" app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintTop_toTopOf=\"parent\" app:layout_constraintVertical_bias=\"0.378\" app:srcCompat=\"@drawable/btn2\" /> <ImageButton android:id=\"@+id/btnt3\" android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\"

125 android:backgroundTint=\"#00FFFFFF\" app:layout_constraintBottom_toBottomOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\" app:layout_constraintHorizontal_bias=\"0.494\" app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintTop_toTopOf=\"parent\" app:layout_constraintVertical_bias=\"0.553\" app:srcCompat=\"@drawable/btn3\" /> </androidx.constraintlayout.widget.ConstraintLayout>

126 คาสั่งหน้า tests package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; public class tests extends AppCompatActivity { ImageButton ic5; ImageButton ic6; ImageButton ic7; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tests); ImageButton ic5=findViewById(R.id.btnt1); ic5.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent=new Intent(tests.this,test1.class); startActivity(intent); }

127 }); ImageButton ic6=findViewById(R.id.btnt2); ic6.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent=new Intent(tests.this,test2.class); startActivity(intent); } }); ImageButton ic7=findViewById(R.id.btnt3); ic7.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent=new Intent(tests.this,test3.class); startActivity(intent); } }); } }

128 คาสั่ง activity_test1.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".test1\"> <WebView android:id=\"@+id/webviewt1\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

129 คาส่ังหน้า test1 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class test1 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test1); webView = (WebView) findViewById(R.id.webviewt1); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13782/327/672\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() { if (webView.canGoBack()) {

130 webView.goBack(); } else { super.onBackPressed(); } } }

131 คาสั่ง activity_test2.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".test2\"> <WebView android:id=\"@+id/webviewt2\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </RelativeLayout>

132 คาสั่งหน้า test2 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class test2 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test2); webView = (WebView) findViewById(R.id.webviewt2); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13783/481/658\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

133 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

134 คาสั่ง activity_test3.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <androidx.constraintlayout.widget.ConstraintLayout 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=\".test3\"> <WebView android:id=\"@+id/webviewt3\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /> </androidx.constraintlayout.widget.ConstraintLayout>

135 คาสั่งหน้า test3 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class test3 extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test3); webView = (WebView) findViewById(R.id.webviewt3); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(\"https://wordwall.net/play/13783/886/380\"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); } @Override public void onBackPressed() {

136 if (webView.canGoBack()) { webView.goBack(); } else { super.onBackPressed(); } } }

137 คาสั่ง activity_manual.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".Manual\"> <com.github.barteksc.pdfviewer.PDFView android:id=\"@+id/pdfView\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"/> </RelativeLayout>

138 คาส่ังหน้า manual package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.graphics.pdf.PdfRenderer; import android.os.Bundle; import com.github.barteksc.pdfviewer.PDFView; public class Manual extends AppCompatActivity { PDFView mPDFView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_manual); mPDFView = (PDFView) findViewById(R.id.pdfView); mPDFView.fromAsset(\"test.pdf\").load(); } }

139 คาส่ัง activity_manual1.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".Manual1\"> <com.github.barteksc.pdfviewer.PDFView android:id=\"@+id/pdfView\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"/> </RelativeLayout>

140 คาส่ังหน้า manual1 package com.example.basenumbergame; import androidx.appcompat.app.AppCompatActivity; import android.graphics.pdf.PdfRenderer; import android.os.Bundle; import com.github.barteksc.pdfviewer.PDFView; public class Manual extends AppCompatActivity { PDFView mPDFView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_manual); mPDFView = (PDFView) findViewById(R.id.pdfView); mPDFView.fromAsset(\"test1.pdf\").load(); } }

141 คาส่ัง activity_manual2.xml <?xml version=\"1.0\" encoding=\"utf-8\"?> <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=\".Manual2\"> <com.github.barteksc.pdfviewer.PDFView android:id=\"@+id/pdfView\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"/> </RelativeLayout>


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook