On Sun, Mar 4, 2012 at 5:57 PM, Matt Clark <[email protected]> wrote: > Right now in my app, when the soft keyboard is shown, it does not resize my > activity to the upper half of the screen that is not being covered by the > keyboard, higing some important elements. How would I detect that the soft > keyboard has been shown, and then change my layout to fit?
Consider wrapping your layout in a ScrollView, then setting android:windowSoftInputMode to adjustResize. http://developer.android.com/resources/articles/on-screen-inputs.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

