`
gxhslcww
  • 浏览: 76852 次
  • 性别: Icon_minigender_1
  • 来自: 南通
社区版块
存档分类
最新评论

20110412-.Kuix 的简单的九宫实现

阅读更多

xml:

 

<screen style="layout:gridlayout(3,3);gap:5 5;margin:10;" title="XXX" focusloop="true">

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(0)"><picture framewidth="50" frameheight="50" framesequence="0" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="0" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(1)"><picture framewidth="50" frameheight="50" framesequence="1" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="1" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(2)"><picture framewidth="50" frameheight="50" framesequence="2" src="modelImg_student.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="2" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(3)"><picture framewidth="50" frameheight="50" framesequence="3" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="3" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(4)"><picture framewidth="50" frameheight="50" framesequence="4" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="4" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(5)"><picture framewidth="50" frameheight="50" framesequence="5" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="5" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(6)"><picture framewidth="50" frameheight="50" framesequence="6" src="modelImg_student.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="6" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(7)"><picture framewidth="50" frameheight="50" framesequence="7" src="modelImg_student.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="7" src="modelStr_student.png" />

</container>

<container  style="align:center;layout:inlinelayout(false, center);" >

<button class="ninebutton" onAction="child(8)"><picture framewidth="50" frameheight="50" framesequence="8" src="XXX.png" /></button>

<picture framewidth="49" frameheight="16" framesequence="8" src="modelStr_student.png" />

</container>

</screen>

 

css:

 

/*九宫按钮*/

.ninebutton {

padding:5;

}

.ninebutton:hover { 

bg-image:url(iconSel.png);

}

分享到:
评论

相关推荐

    kuix.rar 包括kuix以及kutil和demo

    kuix.rar 包括kuix以及kutil和demo

    J2MEUI框架-Kuix

    目前广泛应用的J2Me框架,Kuix是一个使用XML/CSS来开发的lib,它提供了大部分UI组件,比 如:button,textfields,lists,menus,tabs等)。它的主页是源代码放在google code上,http://code.google.com/kuix,如果要使用...

    kuix-1.1.0

    Kuix( Kalmeo User Interface eXtensions) http://www.kalmeo.org/projects/kuix: Kuix是一个使用XML/CSS来开发的lib,它提供了大部分UI组件,比 如:button,textfields,lists,menus,tabs等)。它的主页是源代码放在...

    kuix-1.1.0源代码

    kuix-1.1.0的源代码,直接放到工程里,可以解决导入jar包无法找到类的错误

    手机界面kuix-1.1.0

    Kuix是一个使用xml/CSS来开发的lib,它提供了大部分UI组件,比 如:buttontextfieldslistsmenustabs等)。

    KUIX详细的中文文档,翻译版本

    KUIX详细的中文文档,翻译版本 KUIX只有英文版得。只是一个详细的翻译版本的。对学习KUIX很有帮助。

    j2me开源框架Kuix源码

    国外开源的j2me框架Kuix,功能很好,很强大

Global site tag (gtag.js) - Google Analytics