After installing crosswalk for android the keyboard no longer pushes the content up, instead it simply overlaps the content. This problem persists in android alone and I am sure it’s because of crosswalk since it works fine when I remove crosswalk.
Could someone please help me out here, I just can’t figure out to why this might be happening.
The problem is that with this method the keyboard is visible when the app launches and the app is no longer fullscreen. How do I make this keyboard work without resorting to such hacks. Any inputs will be appreciated.
Does it works on android 4.4.4 and android 5.0 ? have you test it?
Could you share small your code, and how to include it in project for solving this bug?
Sure thing. I will try and list down the steps here:
Copy the code from this SO LINK into a file called AndroidBug5497Workaround.java ( you can name it whatever you want, just make sure you rename the class as well )
Update the Package line ( the first line ) to include your ionic project package
Place this file into your project source dir ( refer THIS image for the folder structure )
Open up MainActivity.java ( should be in the same folder )
Update your onCreate function to contain the AndroidBug5497Workaround.assistActivity(this); line.
Your final onCreate function should look something like this:
public class MainActivity extends CordovaActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml loadUrl(launchUrl); AndroidBug5497Workaround.assistActivity(this); } }
@wtflux, @whitecat29 , I am facing the same problem
for me I don’t know how to make step2
Update the Package line ( the first line ) to include your ionic project package
I don’t know where to find my package name as well
I don’t know so much about android development and java
@whitecat29@wtflux
unfortunately it didn’t work for me
I have a fixed textarea in the bottom
now the textarea become so low an still the keyboard overlapping the content
I was working on my app for 2 months I finished almost every thing can’t upload it to the store because these problem
I had a similar problem where the keyboard would overlap the input window. My solution consists of the following:
The < preference name=“Fullscreen” value=“false” > in config.xml
Apply a min-height on the body (with a value of the phone display height)
Applying overflow-y: scroll to the html element
The result is that when I click an input element in the lower half of the screen, the soft keyboards pops up and at the same time the webview is scrolled so that the input element doesn’t loose focus.
You tried java workaround with config and manifest changes ? or java workaround with default manifest and config ? because manifest and config change along with java didnt work for me !