編輯電子書 - Android資源詳細介紹
書名:
型號:
價格:
簡介:
值的類型包含:字串、陣列、顏色、尺寸與主題風格。 字串資源 res\values\strings.xml。 陣列資源 res\values\strings.xml或arrays.xml。 顏色資源 res\values\color.xml或colors.xml。 尺寸資源 res\values\dimens.xml。 圖像資源 包含點陣圖、png、gif、jpg或NinePatch(可伸拉png,檔名結尾:xxx.9.png),另外也可定義在XML中設定成複合式的drawable。 在Android中尺寸單位有: px(像素) pixels就是屏幕上的點,不同設備不同的顯示屏顯示效果相同,這是絕對像素,是多少就永遠是多少不會改變。 dip(物理尺寸) density-independent pixel(設備獨立像素),不同設備不同的顯示效果。 dp(與密度無關的像素) 同dip一樣,一種基於屏幕密度的抽象單位。 sp(物理尺寸) scale-independent pixels - best for tex
內容:
<div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <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>值的類型包含:字串、陣列、顏色、尺寸與主題風格。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>字串資源</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>res\values\strings.xml。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>陣列資源</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>res\values\strings.xml或arrays.xml。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>顏色資源</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>res\values\color.xml或colors.xml。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>尺寸資源</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>res\values\dimens.xml。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>圖像資源</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>包含點陣圖、png、gif、jpg或NinePatch(可伸拉png,檔名結尾:xxx.9.png),另外也可定義在XML中設定成複合式的drawable。</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; background-color: rgb(255, 255, 255);"> </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; background-color: rgb(255, 255, 255);"> <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>在Android中尺寸單位有:</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>px(像素)</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>pixels就是屏幕上的點,不同設備不同的顯示屏顯示效果相同,這是絕對像素,是多少就永遠是多少不會改變。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>dip(物理尺寸)</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>density-independent pixel(設備獨立像素),不同設備不同的顯示效果。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>dp(與密度無關的像素)</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>同dip一樣,一種基於屏幕密度的抽象單位。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m7_5/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>sp(物理尺寸)</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; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>scale-independent pixels - best for text size(與刻度無關的像素),主要處理字體的大小。</td> </tr> </tbody> </table> </div> </div>
上架
封面圖:
當前封面:
支援格式: JPG, PNG, GIF (最大 2MB)
更新電子書
返回列表