編輯電子書 - AndroidWebView
書名:
型號:
價格:
簡介:
WebView是一個可以內嵌在Activity、Fragment裡的瀏覽器視圖,可以利用它來瀏覽網站或網頁;所以自己撰寫程式內部包含WebView元件,這樣就能利用這個元件瀏覽網路上的網頁。 在實作時,必須做一些設定。要先宣告WebView元件,接下來設定支援JavaScript,支援放大縮小與放大縮小控制項。 再利用webView.loadUrl(url)功能,即可載入網頁。 另外,也可以把網頁放在本機端,利用JavaScript來控制網頁上的元件,這就是現在流行的WebApp。WebApp得先撰寫HTML與JavaScript。 點圖觀看大圖 接下來將它放置在assets資料夾。 再加上載入的程式碼,即可在手機上執行HTML+JavaScript。
內容:
<div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>WebView是一個可以內嵌在Activity、Fragment裡的瀏覽器視圖,可以利用它來瀏覽網站或網頁;所以自己撰寫程式內部包含WebView元件,這樣就能利用這個元件瀏覽網路上的網頁。</td> </tr> </tbody> </table> </div> </div> <div style="color: rgb(0, 0, 0); font-family: Arial, 新細明體; font-size: medium; line-height: normal;"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/1_3_1.jpg" style="height:510px; width:321px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>在實作時,必須做一些設定。要先宣告WebView元件,接下來設定支援JavaScript,支援放大縮小與放大縮小控制項。</td> </tr> </tbody> </table> </div> </div> <div style="color: rgb(0, 0, 0); font-family: Arial, 新細明體; font-size: medium; line-height: normal;"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/1_3_2.jpg" style="height:175px; width:422px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>再利用webView.loadUrl(url)功能,即可載入網頁。</td> </tr> </tbody> </table> </div> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>另外,也可以把網頁放在本機端,利用JavaScript來控制網頁上的元件,這就是現在流行的WebApp。WebApp得先撰寫HTML與JavaScript。</td> </tr> </tbody> </table> </div> </div> <div style="color: rgb(0, 0, 0); font-family: Arial, 新細明體; font-size: medium; line-height: normal;"> <table> <tbody> <tr> <td> <p> </p> </td> <td> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_l01.gif" style="height:13px; width:13px" /></td> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_t01.gif" style="height:13px; width:13px" /></td> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_l03.gif" style="height:13px; width:13px" /></td> </tr> <tr> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_t02.gif" style="height:13px; width:13px" /></td> <td><img id="img2" src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/1_3_3.jpg" style="cursor:pointer; height:338px; width:500px" title="點圖觀看大圖" /></td> <td> </td> </tr> <tr> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_l02.gif" style="height:13px; width:13px" /></td> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_t03.gif" style="height:13px; width:13px" /></td> <td><img src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/bor_l04.gif" style="height:13px; width:13px" /></td> </tr> </tbody> </table> </td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>接下來將它放置在assets資料夾。</td> </tr> </tbody> </table> </div> </div> <div style="color: rgb(0, 0, 0); font-family: Arial, 新細明體; font-size: medium; line-height: normal;"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/1_3_4.jpg" style="height:230px; width:420px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px;"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>再加上載入的程式碼,即可在手機上執行HTML+JavaScript。</td> </tr> </tbody> </table> </div> </div> <div style="color: rgb(0, 0, 0); font-family: Arial, 新細明體; font-size: medium; line-height: normal;"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05185TC1/class800/05185tc1/05185tc1_m7_3/images/1_3_5.jpg" style="height:72px; width:400px" /></td> </tr> </tbody> </table> </div>
上架
封面圖:
當前封面:
支援格式: JPG, PNG, GIF (最大 2MB)
更新電子書
返回列表