Thursday, June 13, 2013

[android help] Avoid Keyboard Pull Activity Layout when shown android


Avoid Keyboard Pull Activity Layout when shown android


Avoid Keyboard Pull Activity Layout when shown android - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















When i focus on edittext in my application the keyboard open and push my activity layout above the keyboard. The only option i have is to check if the keyboard is open then make the buttons that is pulled above keyboard invisible. I wonder if there is a simple way to disable the layout to get pulled up because this is a common error in every application i build. Also can someone tell me how to check when the keyboard is shown or hide. thanks.


enter image description here


Updates : From my manifest

































InputMethodManager imm = (InputMethodManager)getSystemService(
Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);


this could help


better look at hereenter link description here























Please refer this link, re-sizing the app



android:windowSoftInputMode="adjustResize">





















i think u should change in manifiest



android:windowSoftInputMode="adjustResize|adjustPan">























Try to put this in you manifest :



android:name=".MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize" >



This will help you and wont pull layout up and also useful in handling configuration change when activity is transferred from Portrait mode to Landscape mode.




















default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...