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