Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

softKeyboardBehavior not panning on Android

$
0
0

Hello all,

 

 

I've been scratching my head with this for a while now and think I need to ask for help.

 

 

I have a TextField which is set to TextFieldType.INPUT. On Apple devices, when a user clicks on this text field, it focuses in on the text field like we'd expect it to, however on Android the soft keyboard appears over the text field making input awkward.

 

 

What I've tried so far:

 

 

Explicitly setting: <softKeyboardBehavior>pan</softKeyboardBehavior>

 

 

&

 

 

var locToGlob:Point = _textInput.localToGlobal(0,0);

this._textInput.softKeyboardInputAreaOfInterest = new Rectangle(locToGlob.x,locToGlob.y,_textInput.width ,_textInput.height);

 

 

But it just seems to completely ignore softKeyboardInputAreaOfInterest.

 

 

Does anybody know why this might be? I'm using AIR 4.0.

 

 

Thank you in advance for any help anyone may be able to offer.


Viewing all articles
Browse latest Browse all 2010

Trending Articles