Android Question Keyboard Hiding Input Text

EduardoElias

Well-Known Member
Licensed User
Longtime User
Hi there!

I have a layout with several input text

I use it fine already for years in my app. Recently I noticed that when the keyboard is opened (when focus get on the edit box) it does not scroll the application anymore.

Not sure what was changed at all

Android 4.4.4 Tablet Samsung Tab E, B4A 8.5

I need that the screen app scroll since the user is filling in the fields and hinting next, at some point the fields will be under the keyboard and cant see what is happening.

Thanks
 

EduardoElias

Well-Known Member
Licensed User
Longtime User
Did you change something in a manifest or something relative to IME ?

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14"
        android:targetSdkVersion="14"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<supports-screens android:largeScreens="true"
    android:xlargeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.bluetooth" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.usb.accessory" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.usb.host" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.FAKETOUCH" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.LOCATION" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.location.GPS" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.location.NETWORK" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.WIFI" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.touchscreen" android:required="false" />)
AddManifestText(<uses-feature android:name="android.permission.WAKE_LOCK" android:required="false" />)
AddManifestText(<uses-feature android:name="android.permission.ACCESS_FINE_LOCATION" android:required="false" />)
AddManifestText(<uses-feature android:name="android.permission.ACCESS_COARSE_LOCATION" android:required="false" />)
RemovePermission(android.permission.ACCESS_COARSE_LOCATION)
RemovePermission(android.permission.ACCESS_FINE_LOCATION)
RemovePermission(android.permission.VIBRATE)
RemovePermission(android.permission.BLUETOOTH_PRIVILEGED)
RemovePermission(android.permission.BLUETOOTH_ADMIN)
RemovePermission(android.permission.WAKE_LOCK)
AddActivityText(main, <intent-filter >
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.HOME" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>)

This is my current manifest. I remember that work correctly before, but something changed and I only noted this recently, I cant track where or what changed for this
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
I created a new project and placed two edittext in layout.
Tested in emulator of API 19 with your and standard manifest
Works normally.

Maybe IME ? Do you use it ?

BTW, why targetSdkVersion="14" ?
 
Last edited:
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
I created a new project and placed two edittext in layout.
Tested in emulator of API 19 with your and standard manifest
Works normally.

Maybe IME ? Do you use it ?

BTW, why targetSdkVersion="14" ?

Actually I have IME define because I have a button on the top to close the keyboard

Sub hidekeyboard
Dim IME1 As IME
IME1.Initialize("")
IME1.HideKeyboard
End Sub

That is all. I test removing it and the problem continues.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
No ideas. Because initial variant (standard manifest + 2 edittext in layout) works without problems, I see typical way only - to find "bad code" by removing parts of program until app will begin to work again.
 
Upvote 0
Top