0
A
回答
0
没有任何wrap_content,因为您没有corona中的视图组。你有简单的团体,但你可以效仿wrap_content。也有文本模块至极会帮助你,检查http://developer.coronalabs.com/code/
是的,你可以实现在每个屏幕方向FILL_PARENT:
local W = display.contentWidth
local H = display.contentHeight
local background
local function drawInterface()
background = display.newRect(0, 0, W, H)
background.x = display.contentCenterX
background.y = display.contentCenterY
background:setFillColor(99, 165, 204)
end
drawInterface()
local function removeInterface()
if background then background:removeSelf() end
end
local function onOrientationChanged (event)
print("orientation changed")
W = display.contentWidth
H = display.contentHeight
removeInterface()
drawInterface()
end
Runtime:addEventListener("orientation", onOrientationChanged)
相关问题
- 1. 的Lua /科罗娜SDK错误
- 2. 科罗娜SDK的Lua network.request延迟
- 3. LUA(科罗娜SDK)math.floor()以0.1
- 4. 科罗娜SDK:填补酒吧从左至右
- 5. 科罗娜SDK - 从事件监听
- 6. 科罗娜的关键事件
- 7. 碰撞没有与科罗娜射击
- 8. 科罗娜SDK - “ShowOverlay”与信箱问题
- 9. 不能向后移动组!科罗娜SDK
- 10. 科罗娜SDK触摸阶段 - 触摸并保持
- 11. 切割图像的图像内的科罗娜SDK
- 12. 移动应用程序在科罗娜工作,但不在电话上
- 13. WPF图像拉伸,以填补不延伸到它的父母
- 14. 扩大孩子的身高填补父母的分区
- 15. 在哪里采取perspective.lua为科罗娜sdk以及如何安装它?
- 16. 科娜需要永远吗?
- 17. 科罗娜SDK - 如何实现对对象的路径与物理
- 18. 科罗娜SDK数组索引超过数组边界的,建议需要
- 19. 填充父母不工作
- 20. Lua + SWIG Monkey修补
- 21. 父母的绝对孩子不正确填写父母背景
- 22. 竖直扩展的元素,以填补父母的剩余空间
- 23. GridView的孩子们应该伸出来填补他们的GridView父母
- 24. 在没有父母的情况下在gerrit中提交补丁
- 25. 父母的父母的父母
- 26. 科罗测试::更多
- 27. 填补
- 28. 科罗娜SDK widget.newButton()没有出现在模拟器里面的时候的场景:创建
- 29. 科罗娜应用程序在Android/iPhone上具有原生外观和感觉吗?
- 30. 在科罗纳sdk时间coutdown