设置tab的格式

来源:互联网 发布:心知天气~查气压 编辑:程序博客网 时间:2024/05/16 16:06


客户要求,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对应目录加入相应的图片。
原创粉丝点击