12568

Show SoftKeyboard in landscape but not entire screen

Im trying to achieve something like this image: <img src="https://i.stack.imgur.com/8V1Nj.png" alt="enter image description here">

the problem its when im on landscape and put a searchbar like the image, the soft keyboard cover all screen,and i want the behavior like the image i tried

android:windowSoftInputMode="adjustPan|adjustResize"

and seems isnt working,at least on jelly bean. any ideas? Thanks

Answer1:

i found the solution, in imeOptions of EditText, so i used

android:imeOptions="flagNoFullscreen"

so the screen now its in middle :)

<EditText android:id="@+id/txt_search" android:inputType="text" android:imeOptions="flagNoFullscreen" android:hint="@string/hint_search" android:layout_width="fill_parent" android:layout_height="wrap_content" />

Recommend

  • Jelly Beans and ICS Emulators not Opening
  • Create New Activity adds an activity which extends Activity class instead of ActionBarActivity class
  • Push notifications with FCM on DevExtreme/Phonegap
  • Minimum Android version with flutter
  • phonegap does not trigger jquery click event
  • phonegap build error plugin is not on npm: Device
  • Cordova android - Keyboard covering input fields
  • Show SoftKeyboard in landscape but not entire screen
  • IndexError while printing in from csv
  • Remove unmatched HTML tags in a string
  • Sencha touch 2.0 carousel, image resolution
  • APK 0 (zero) Device compatibility
  • How to check Eclipse plugin performance
  • Android Soft Keyboard Obscures EditTexts in ScrollView
  • LibGdx GLES2.0 cube texel stretching
  • How to add the custom button on google's(device) native application in android?
  • Migration to HRD - How to convert string-encoded keys to new application
  • Compare struct to a constant in C
  • Wrong labels when plotting a time series pandas dataframe with matplotlib
  • Application level floating views with navigation in Android
  • AndEngine Applying Transparancy to AndEngine View
  • Android application: how to use the camera and grab the image bytes?
  • Using a canvas object in a thread to do simple animations - Java
  • Parsing a CSV string while ignoring commas inside the individual columns
  • Disable Enter in editText android
  • Cannot resolve symbol 'MyApi'
  • Avoid links criss cross / overlap in d3.js using force layout
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • QLineEdit password safety
  • Release, debug version and Authorization Google?
  • Matrix multiplication with MKL
  • Hits per day in Google Big Query
  • File not found error Google Drive API
  • Converting MP3 duration time