Android Soft Keyboard

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Android Soft Keyboard

bilbosax
I. Am. Baffled.

I have written a mobile AIR app and it now works on iOS 100%.  I'm thrilled.
I tried it today on Android and it is a different story.  TextInputs and the
softkeyboard are the first problem that I need to address.  The textInputs
work great when the app first starts up and call the softkeyboard when they
recieve focus(but the textInputs do not pan to stay above they keyboard).
The soft keyboard also works great in a webview that displays.  But I have
two popups that contain textInputs. When tapped on, a cursor appears, the
component reacts properly that it recieved focus, but no soft keyboard.  I
tried setting needsSoftKeyboard = true, this did not help.  When the
textInput receives focus, I tried:

myTextInput.requestSoftKeyboard();

but I get a huge "undefined" error, with no more explanation than that.
Also, the textInputs pan on iOS to remain above the keyboard, but not on
android. Is there anything regarding softkeyboards that I have to set in the
application descriptor file for android??? If anyone has any ideas why the
textInput is working in one place, but not in this popUp for me, or if you
have any ideas of what I can possibly try, please let me know.

(I am using Air 27, Android 6.0.1, on a Galaxy Tab 2)



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Android Soft Keyboard

bilbosax
So part of the problem seems to be the skin that I am using. I am currently
using

spark.skins.mobile.TextInputSkin

This skin will not pull up the keyboard in my popups, but this one will

spark.skins.mobile.StageTextInputSkin

The TextInputSkin allows the text to scroll on the screen with no problems,
while the StageTextInputSkin will leave the text behind if you scroll.

Neither one of them will pan properly on android at the moment.  (It is
absurd that on AIR version 27, there are still so many problems with
TextInput on mobile)

Any thoughts???  What skins does everybody else use that seem to behave
properly on iOS and Android and keep the text within their textInputs on
panning???



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Android Soft Keyboard

OmPrakash Muppirala
A while ago, we changed the default skin
to: spark.skins.mobile.ScrollingStageTextInputSkin

https://github.com/apache/flex-sdk/blob/ba414443032b49c45ff11b61db452c8a8f428bd8/frameworks/projects/mobiletheme/defaults.css#L344

Can you try to see if using spark.skins.mobile.ScrollingStageTextInputSkin
fixes your problem?

Thanks,
Om

On Thu, Jan 11, 2018 at 6:49 PM, bilbosax <[hidden email]> wrote:

> So part of the problem seems to be the skin that I am using. I am currently
> using
>
> spark.skins.mobile.TextInputSkin
>
> This skin will not pull up the keyboard in my popups, but this one will
>
> spark.skins.mobile.StageTextInputSkin
>
> The TextInputSkin allows the text to scroll on the screen with no problems,
> while the StageTextInputSkin will leave the text behind if you scroll.
>
> Neither one of them will pan properly on android at the moment.  (It is
> absurd that on AIR version 27, there are still so many problems with
> TextInput on mobile)
>
> Any thoughts???  What skins does everybody else use that seem to behave
> properly on iOS and Android and keep the text within their textInputs on
> panning???
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>
Reply | Threaded
Open this post in threaded view
|

Re: Android Soft Keyboard

bilbosax
Beautiful!!  Thank you Om.  I would have thought it would have popped up much
more noticeably in Google or something.

That solves the scrolling problem for me, but not really the panning issue.
So now, I get the softkeyboard when I click on the textInput, and it scrolls
beautifully, but the textInputs won't pan to display above the keyboard.
The only way that I have gotten this to happen on Android so far is to set
the fullscreen option in the descriptor file to be false.  I would prefer it
to be true as I need every bit of screen real estate.

Any way to force Android to pan the textInputs?



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Android Soft Keyboard

OmPrakash Muppirala
On Jan 11, 2018 7:50 PM, "bilbosax" <[hidden email]> wrote:

Beautiful!!  Thank you Om.  I would have thought it would have popped up
much
more noticeably in Google or something.


Welcome!


That solves the scrolling problem for me, but not really the panning issue.
So now, I get the softkeyboard when I click on the textInput, and it scrolls
beautifully, but the textInputs won't pan to display above the keyboard.
The only way that I have gotten this to happen on Android so far is to set
the fullscreen option in the descriptor file to be false.  I would prefer it
to be true as I need every bit of screen real estate.

Any way to force Android to pan the textInputs?


Is this value set in your descriptor xml?
softKeyboardBehavior: pan






--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Android Soft Keyboard

bilbosax
Yes I did. It does not help unless I set the fullscreen mode to false on
Android. Even then, the bottom edge of the textInput is still under the
keyboard a tad, it does not seem to scroll it quite high enough.

(An interesting observation. On iOS, I found that your
spark.skins.mobile.ScrollingStageTextInputSkin does not scroll the text
properly unless you have softKeyboardBehavior: pan.  If set to none, the
text hovers for awhile before re-situating inside of the textInput during a
scroll)



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/