I used the static tabitems. and my tabitems are hard coded in xml. Only for list items display using the dataprovider. i used the list renderer .
I post my xml code here...
<screen cleanUpWhenRemoved="true">
<tabfolder >
<tabitem style="layout:borderlayout" icon="call_img.PNG" label="Logs" id="tab1">
<textfield style="layout:borderlayout;layout-data:bld(north);align:center;margin:2;border:0;bg-image:url(white_dialer.PNG);border-color:white;font-style:bold;font-size:large;min-size:20 10">
09983866866
</textfield>
<container style="layout:borderlayout;layout-data:bld(center)" >
<scrollpane >
<list >
<_renderer >
<![CDATA[
<listItem onfocus="contactfocus" style="layout:gridlayout(3,1)" onAction="show">
<picture style="align:left">arrow-green.PNG</picture>
<container style="layout:inlinelayout(false,fill)">
<text >@{name}</text>
</container>
<picture >Mobimoovicon.PNG</picture>
</listItem>
]]>
</_renderer>
<_items >@{calllogs}</_items>
</list>
</scrollpane>
</container>
</tabitem>
<tabitem style="layout:borderlayout" icon="contact_img.PNG" label= "Contacts" id="tab2">
<container style="layout:borderlayout;layout-data:bld(center)" >
<scrollpane >
<list >
<_renderer >
<![CDATA[
<listItem onfocus="contactfocus" style="layout:borderlayout" onAction="show">
<container style="layout:inlinelayout(false,fill)">
<text >@{name}</text>
</container>
</listItem>
]]>
</_renderer>
<_items >@{contacts}</_items>
</list>
</scrollpane>
</container>
</tabitem>
<tabitem style="layout:borderlayout" icon="chat_img.PNG" label="M2MUI" id="tab2">
<container style="layout:borderlayout;layout-data:bld(center)" >
<scrollpane >
<list >
<_renderer >
<![CDATA[
<listItem onfocus="contactfocus" style="layout:gridlayout(2,1)" onAction="show">
<picture>M2MUI.PNG</picture>
<container style="layout:inlinelayout(false,fill)">
<text >@{name}</text>
</container>
</listItem>
]]>
</_renderer>
<_items >@{m2mcontacts}</_items>
</list>
</scrollpane>
</container>
</tabitem>
</tabfolder>
<screenfirstmenu onAction="options">Options</screenfirstmenu>
<screenSecondMenu onAction="hide"></screenSecondMenu>
</screen>
and one morething i need to display seperate options for each tab item. Means Whenever i click the screenfirstmenu options i need to display different popup for each tabitem...
Regards,
Suresh A