0
當建立一個應用程序(在我的情況下爲Android),你將如何引用和顯示存儲在設備上的音樂文件與電暈。我搜查了http://developer.coronalabs.com/reference,我找不到它,但我不是說它不是他們的。如何參考存儲在移動設備上的文件?
因此,這是一個將被用於「歌曲」
local storyboard = require("storyboard")
local scene = storyboard.newScene()
function scene:createScene(event)
local group = self.view
local bg = display.newRect(0, 0, display.contentWidth, display.contentHeight)
bg:setFillColor(255) -- white
local title = display.newRetinaText("First View", 0, 0, native.systemFont, 32)
title:setTextColor(0) -- black
title:setReferencePoint(display.CenterReferencePoint)
title.x = display.contentWidth * 0.5
title.y = 125
local summary = display.newRetinaText("Loaded by the first tab 'onPress' listener\n— specified in the 'tabButtons' table.", 0, 0, 292, 292, native.systemFont, 14)
summary:setTextColor(0) -- black
summary:setReferencePoint(display.CenterReferencePoint)
summary.x = display.contentWidth * 0.5 + 10
summary.y = title.y + 215
local sliderListener = function(event)
local sliderObj = event.target
function buildGUI()
print("New value is: " .. event.target.value)
end
group:insert(bg)
group:insert(title)
group:insert(summary)