sure, this is just the interested part where the textfield is created and handled :
function onRowRender( event ) local row = event.row local rowHeight = row.contentHeight local rowWidth = row.contentWidth local showInd = display.newText( row, namesContainer[row.index] or row.index, 0, 0, nil, 16 ) showInd.anchorX = 0.5 if showInd.text == tostring(row.index) then showInd.x = 8 else showInd.x = rowWidth / 2 end showInd.y = rowHeight \* 0.2 showInd:setFillColor( 0.8 ) showInd.alpha = 0.7 local inputName = native.newTextField( 0, 0 , 158, 16 ) row:insert (inputName) inputName.anchorX = 0.5 inputName.x = rowWidth / 2 inputName.y = rowHeight \* 0.28 inputName.inputType = "default" inputName:setTextColor(1, 1, 1 ) inputName.hasBackground = false inputName.align = "center" inputName.alpha = .8 inputName.strokeWidth = 2 inputName.strokeColor = { 30/255, 45/255, 1827/255 } local function inHandler (event) transition.to (showInd, {alpha=0, time=100}) if (event.phase == "began") then elseif (event.phase == "editing") then print ("editing " .. event.target.text) elseif (event.phase == "ended") then print ("ended " .. event.target.text) native.setKeyboardFocus (nil) transition.to (showInd, {alpha=0.7, time=100}) event.target.text = "" elseif (event.phase == "submitted") then print ("submitted " .. event.target.text) rowName = event.target.text if string.len( rowName ) \> 0 then if string.len( rowName ) \> 24 then rowName = string.sub( rowName, 1, 24 ) end namesContainer[row.index] = rowName showInd.text = rowName inputName.text = "" native.setKeyboardFocus (nil) transition.to (showInd, {alpha=0.7, x = rowWidth / 2, time=100}) else native.setKeyboardFocus (nil) transition.to (showInd, {alpha=0.7, time=100}) end end end inputName:addEventListener( "userInput", inHandler ) end
Hope it’s clear enough…