Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
AwesomeDev
Posts: 39
Registered: ‎04-23-2011
My Device: N/A
My Carrier: N/A
Accepted Solution

keyboard covering textinput in Flex, FB 4.6 (BB10)

[ Edited ]

Hi there,

 

In Flash Builder 4.6 while creating a flex mobile application in landscape mode, i have a textinput that is covered by the virtual keyboard when the user taps on it, so that the user is tapping 'blindly'. Is there any way for me to get the application to shift upwards as the keyboard is active so that the user can see the keyboard, and when the keyboard is disabled, the application returns to its initial state?

 

please refer to diagram below

 

Also, selecting the type of keyboard in flex (number, email, etc.) does not appear to be working. help?

 

thanks.

Please use plain text.
Developer
Developer
mdd
Posts: 222
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Re: keyboard covering textinput in Flex, FB 4.6 (BB10)

check the following in app.xml:

 

<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none").  Optional.  Defaults "pan." -->
<!-- <softKeyboardBehavior></softKeyboardBehavior> -->

 On the simulator, I still cannot get the keyboard to automatically pop when the TextInput get focus...

 

Regards,

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series
My Carrier: Airtel

Re: keyboard covering textinput in Flex, FB 4.6 (BB10)

Use

 

<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none").  Optional.  Defaults "pan." -->
<softKeyboardBehavior>pan</softKeyboardBehavior>

 

Please use plain text.
Contributor
AwesomeDev
Posts: 39
Registered: ‎04-23-2011
My Device: N/A
My Carrier: N/A

Re: keyboard covering textinput in Flex, FB 4.6 (BB10)

I tried softKeyboardBehavior but it returns a problem when trying to launch:

 

"Error occurred while packaging the application:

Packaging failed:1

...

error 103:

application.initialWindow.softKeyboardBehavior is an

unexpected element/attribute

Error: AIR validation failed"

 

Help???

Please use plain text.
Contributor
AwesomeDev
Posts: 39
Registered: ‎04-23-2011
My Device: N/A
My Carrier: N/A

Re: keyboard covering textinput in Flex, FB 4.6 (BB10)

Never mind. Added extra pair of tags. Thanks!

Please use plain text.