`
gxhslcww
  • 浏览: 78240 次
  • 性别: 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"是一个压缩文件,通常用于存储多个相关文件或文件夹,便于传输和存储。RAR是一种流行的压缩...此外,对于开发者而言,查看源代码和了解kuix、kutil的设计和实现将有助于深入理解和利用这个工具集。

    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-1.1.0源代码解析与应用指南》 在软件开发过程中,遇到导入jar包却找不到类的问题是常有的困扰。为了解决这类问题,我们常常需要深入到源代码层面进行分析和理解。本文将详细介绍kuix-1.1.0的源代码,帮助...

    手机界面kuix-1.1.0

    3. **kuix-1.1.0.jar**:这是Kuix库的核心文件,包含了所有实现UI组件和功能的类和方法,开发者在项目中引用此jar文件即可使用Kuix库。 4. **README**:一般会提供库的基本使用指南、安装步骤、示例代码等,帮助...

    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等)。它的主页是源代码放在...

    j2me开源框架Kuix源码

    3. **数据绑定**:Kuix允许开发者将UI组件与数据模型绑定,实现视图和模型的自动同步,减少了手动更新界面的工作。 4. **可扩展性**:框架设计时考虑了模块化和可扩展性,开发者可以轻松地添加自定义组件或扩展现有...

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

    【KUIX中文文档概述】 KUIX,全称为Kalmeo J2ME的用户界面扩展,是一个专门针对Java ME应用程序开发的框架。它的主要目标是简化和加速高端J2ME应用的创建,提供丰富的图形元素,如按钮、文本框、列表和菜单,以构建...

Global site tag (gtag.js) - Google Analytics