Android Keyboard that doesn't squeeze layout but shift EditText - android

I have developed an iPhone app and now going to port it to Android. Almost all features work but the only thing I noticed is when I focus any Texbox or Textarea, the keyboard is opened and moves the whole page off the screen. I got to know that putting android:windowSoftInputMode="adjustPan" would solve the issue but then another issue came out.
Now when I focus any text element, the keyboard is opened but the view size is squeezed to the height (minus keyboard height) shifting bottom tab buttons above keyboard which is very bad effect in my opinion. Although it doesn't now move the whole page off the screen but can I use this property android:windowSoftInputMode="..." to ask it to show keyboard over tab buttons (hiding tab buttons under keyboard) but just move the view if the text elements are being hidden?

Related

How to make the screen scroll top programmatically when keyboard is open in ionic

Unable to scroll screen while keyboard is opened.I design a screen with labels, button and textarea. Textarea will be hidden for the first time, when user clicks a button, we are showing text area to the user.Now the issue is when i focus on textarea scrolling doesn't work and textarea is being covered by keyboard.
What we observed is the problem with hide and show of textarea. If i put textarea static everything works as expected.
For some other reasons, I had this line in my code
cordova.plugins.Keyboard.disableScroll(true);
These are the things I've tried and couldn't make it work
$ionicScrollDelegate.$getByHandle('mainScroll').scrollTop();
$ionicScrollDelegate.ScrollBottom();
$ionicScrollDelegate.scrollTo();
$ionicScrollDelegate.scrollBy();
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated;
Give the x and y direction for your textview. When dismissing keyboard use it again and make co-ordinates (0,0). This may help you.

Blank space when soft-keyboard opens in Android

I need to use
windowSoftInputMode="adjustReszize"
for detecting Soft Keyboard changes i.e when it opens/closes.
My problem is that when I do this I see a blank space for a split second as the view is first re-sized and then the keyboard opens.
Is there any way to avoid this other then adding a background image to the window?

softkeyboard predictive text overlap text area

i am playing with android soft keyboard example.but the problem i m getting predictive text area overlap the edit text box. I tried both
android:windowSoftInputMode="stateVisible|adjustResize"
and
android:windowSoftInputMode="stateVisible|adjustpan" but nothing
That's a problem with the keyboard. The keyboard implements a function onComputeInsets, which provides a visible inset and a content inset. If they make the visible inset bigger than the content inset, the difference will always overlap the app. There's no way for the app to fix this. You can see that if you switch to a different keyboard that likely won't happen.

Webview moves up when keyboard hides

The issue happens in an application whith a linear layout that divides the screen in two parts, the upper part is a simple View and the lower part is a WebView that loads google.com. The WebView takes the 60% of the space and the View the other 40%. In that scenario I touch the google search bar showing the soft keyboard, inmediately I touch the WebView outside the search bar just at the right of the search button, that hides the soft keyboard but just before this the WebView moves up for an instant and comes back to its initial position as the keyboard dissapears, no idea of why this happens and how to avoid it.
Please see the sample application, to reproduce the issue you can use a WVGA (800×480) simulator, I noticed the issue in a Samsung Galaxy Tab 10.1.
http://www.fileserve.com/file/txC3RV6/WebViewDemo.rar
Any suggestion?
Thanks for your time.
Goyo.
If you put the entire linear view inside the scrollview then the webview wont move up.

How to avoid the on-screen keyboard from covering the EditText in android

whenever I click on the EditText, the screen readjusts and the edittext-view moves up. But this is not enough and the soft-keyboard still covers the view to not show what a user typing.
My layout is as follows:
A listview occupying 65% of screen height, followed by an editetxt view and a button
LISTVIEW
______________________________
EDITTEXT |BUTTON
______________________________
My activity has the following flag set android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
adjustPan forces the soft keyboard to appear on top of your layout, blocking anything at the bottom. You're going to want to use adjust resize instead, which will move up your EditText and Button, and shrink the ListView. If, in landscape mode, the ListView is shrunk to the point of being unusable/pointless, consider using a fullscreen IME keyboard.
Read about something like that just recently. Is this what you are looking for?
http://www.vogella.de/blog/2010/10/25/android-windowsoftinputmode/

Categories

Resources