UIWebView Creates empty space below textfield when keyboard appears - xamarin.ios

I'm using UIWebView in Xamarin iOS for loading my webpage
When the keyboard appears extra space appearing between textfield and keyboard, I need to remove the unwanted space, Kindly help on this. Thanks in Advance

Related

Custom Keyboard for iPhone X inputView.frame size

I have my custom keyboard that's fine with all iPhones except iPhone X. In my custom keyboard i create UI with XIB file and i am not using Autolayout. Here is how i add my keyboard view in Keyboard Extension.
self.myKeyX.frame = self.inputView.frame;
[self.inputView addSubview:self.myKeyX];
However my keyboard show only in black Area and not showing full keyboard place. Please see in photo. How can i solve it? Thank you.
Here is photo
Following is working for me, on iPhone X
xib need to tick "Use safe-area Layout Guides"
add constraints to safe-area guides

A keyboard with a UITextField

I have a table listing some strings, and what I want is when I tap the add button on the navigation bar, a keyboard with a textField would jump up, so I can input a string in the textField, then when I tap the return key, the keyboard disappear as well as the textField, and the new string is added to the table.
I already make up a nib file with a toolBar containing a textField, and I just failed to go on.
How can I implement this idea? Use the inputAccessoryView? If so, that means the inputAccessoryView of the textField which belongs to the toolBar is gonna be the toolBar itself!
This seem kind of weird and I have not been able to make it work till now.
Or is there another way for this idea?
Thanks a lot!
I've solved the problems by using notification instead of inputAccessoryView.
There is a sample code in XCode called "KeyboardAccessory", and it gives a good example about using keyboard notifications!
Or custom a view with a tab, and set it as the textField's inputAccessoryView, that would also work!

How can I prevent edit text being hidden by the Android keyboard?

I have around 4-5 edit text on the screen, now when user types, some EditText are hidden behind the soft keyboard and user can not see what he is typing.
Please give ideas what can be done.
Thanks
Ok.. I got the solution put a LinearLayout containing all TextViews and EditText in scroll view and then when user presses next view is scrolled and user will be able to see what he is typing.

inputAccessoryView not hide the view when -resignFirstResponder?

I have attached a toolbar with a UITextField and UIButton to the keyboard when it becomes the first responder via the user taping inside the textfield
textField.inputAccessoryView = theToolbar;
Problem is, the toolbar disappears when the keyboard is dismissed, thus preventing any further input.
Any ideas on how to make the toolbar go back to the bottom of the screen rather than off it completely?
I'm thinking a delegate method might help but Im really not too sure. It seems once the inputAccessoryView always the inputAccessoryView :(
Cheers
The input accessory view is automatically dismissed with the input view (the keyboard, in this case). Generally you do not want to have an input accessory view in your view hierarchy. Instead, if you want your toolbar to scroll up when the keyboard is shown, you should follow the guidelines for Managing the Keyboard.
You could try using an additional toolbar that is offscreen as the inputAccessoryView, which could "fake" the appearance of what you are trying to do. Alternatively, have you tried adding the toolbar back to the bottom of the screen using
[self.view addSubview:theToolbar];
when the keyboard reaches the bottom of the screen? You can use keyboard notifications for this.

Android - Soft keyboard for TextField inside a webview

Usually in landscape mode an EditText will open the IME in full screen mode, but for an textfield inside a webview (loaded as a HTML content) it doesn't and it pushes the existing view upwards. Tried using 'adjustpan' options but to no avail. Is it possible to change the IME in this scenario? Thanks in advance...
'adjustPan' might not work unless you specify the option for all of the views in the tree, not just the activity. Take a look at this answer for more info: https://stackoverflow.com/a/7183626/758458

Resources