客戶要求,tab要做成標準的樣式。
1.首先,把tab做成2灰1白的三張連接的圖片。
2.對xml中的tabctrl設置要仔細,它的寬度和高度
更要注意的是tabskin,tabskin的寬度和高度。
<img pos="5,30" skin="tablinel"/>
<img pos="299,30,-0,31" skin="tablinerstretch"/>
<!--<tabctrl class="textsettab" id="139" tabwidth="121" tabheight="25"
framepos="0" pos="17,10,390,260" text-x="5" text-y="3" noscroll="1">-->
<tabctrl class="textsettab" tabskin="tabset" id="139" tabwidth="94" tabheight="21"
framepos="0" pos="17,10,390,260" text-x="5" text-y="1" noscroll="1">
<!--<tab id="210" title="默認啓動項" width="full" height="full" skin="tabset1">-->
<tab id="210" title="默認啓動項" width="full" height="full">
<tab id="211" title="消息提醒" width="full" height="full">
def_skin.xml
<png name="tabset" src="1105" subwidth="94"/>
3.在def_res.xml對應目錄加入相應的圖片。