摘要:
1、在你的项目下的manifests下把XML表中的package改了 2、在你Gradle Scripts中的项目Module中的applicationId改成想改的包名 阅读全文
摘要:
local button= cc.ui.UIPushButton.new({normal="UI/1.png",pressed="UI/bg.png",disabled="UI/1.png"},{scale9=true}) :setButtonSize(100,200) :setButtonLabe 阅读全文
摘要:
local listView=cc.ui.UIListView.new{ --创建一个ListView viewRect=cc.rect(0,0,720,1280), --显示区域,前面两个零食起点坐标,后面是宽高 direction=cc.ui.UIScrollView.DIRECTION_VER 阅读全文
摘要:
1、选择你要自适应的panel 选择相对布局和自适应分辨率 2、选择要自适应的图片 选择模式Custom 选择百分比 图片的尺寸改为原始尺寸 阅读全文
摘要:
方法一 local widget = cc.uiloader:load("Test_1.json") --加载json文件 self:addChild(layer) layer:addChild(widget) local Node=cc.uiloader:seekNodeByPath(widget 阅读全文
摘要:
代码没什么难度,就是SNSI转UTF-8的时候必须是UTF-8无BOM格式的不然会出错,在eclipse上是看不出什么错误的,但在andstudio上会发现多一个"-"的符号。废话不多说直接上代码。 function string.getCsvFile(filePath) --filePath是你C 阅读全文