lua - auto adjust screen when native.textfield is clicked using corona sdk -


i'm using corona sdk project , have native text field in page. when clicked native textfield, the keyboard appears , keyboard blocking textfield. there way beside scrollview can use? i'm hoping can when texting, screen auto adjust textfield cannot blocked. in advance guys!

here code in textfield:

function scene:enterscene( event )   local group = self.view   local bg_x = display.contentwidth   local bg_y = display.contentheight   search_field = native.newtextfield( 40, 85, 240, 23)   search_field:settextcolor( 204,204,204 )   search_field.x = bg_x*0.5   search_field.y = bg_y*0.65   -- search_field.size = 17   search_field.width = bg_y*0.4   search_field.height = bg_y*0.07   search_field.font = native.newfont( "ptsans-regular", 17 )   search_field.align = "center" end 

there's no way have screen auto-adjust. have program in yourself. can searching on google around topic of 'corona sdk textfields' , @ of blog , forums posts it. people have several different solutions problem none of them looking for.

i know 1 solution when keyboard opens create new textfield can seen , user types puts text in both textfields.

good luck.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -