- Summary: Pressing the edittext to fill the required text fails to open keyboard
- Actual Behavior: When focus changes on other object (button pressed) the keyboard will not open
when pressing the edittext
- Expected Behavior: Keyboard must open when pressing edittext
-SOLUTION : A PAIR OF GLASES FOR MOTOROLA ROM
-I do not use ime library but the core version 2.47
Tested on motorola defy+ ,motorola motolux, vodafone smart 2 , All android 2.3...
-Additional resources
here is a film that I have made to demonstrate the issue !!
https://www.dropbox.com/s/m3o1c9hdty8agxc/motorola test.3gp
here is my test project:
https://www.dropbox.com/s/osns2fczkte5p9x/ime.rar
Reproduction Steps
i PRESS ADD PRODUCT BUTTON
i FILL IN TEXT SAMPLE ...TEST
HIT SAVE AND EXIT
PRESS BACK KEY TO CLOSE KEYBORD
PRESS BACKKEY TO HIDE PANEL
i PRESS ADD PRODUCT AGAIN AND THE KEYBOARD WILL NOT OPEN ANYMORE !!
***********
I tryed to use ime library and using ime1.hidekeyboard but it does not solve the problem
here is the same code from the test project !
- Actual Behavior: When focus changes on other object (button pressed) the keyboard will not open
when pressing the edittext
- Expected Behavior: Keyboard must open when pressing edittext
-SOLUTION : A PAIR OF GLASES FOR MOTOROLA ROM
-I do not use ime library but the core version 2.47
Tested on motorola defy+ ,motorola motolux, vodafone smart 2 , All android 2.3...
-Additional resources
here is a film that I have made to demonstrate the issue !!
https://www.dropbox.com/s/m3o1c9hdty8agxc/motorola test.3gp
here is my test project:
https://www.dropbox.com/s/osns2fczkte5p9x/ime.rar
Reproduction Steps
i PRESS ADD PRODUCT BUTTON
i FILL IN TEXT SAMPLE ...TEST
HIT SAVE AND EXIT
PRESS BACK KEY TO CLOSE KEYBORD
PRESS BACKKEY TO HIDE PANEL
i PRESS ADD PRODUCT AGAIN AND THE KEYBOARD WILL NOT OPEN ANYMORE !!
***********
I tryed to use ime library and using ime1.hidekeyboard but it does not solve the problem
here is the same code from the test project !
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Button1 As Button
Dim Panel1 As Panel
Dim lv1 As ListView
Dim Button2 As Button
Dim EditText1 As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
lv1.Width=Activity.Width
lv1.Height=Activity.Height-Button1.Height
lv1.Top=Button1.Height
Panel1.Width=Activity.Width
Panel1.Left=Activity.Width
EditText1.Color=Colors.White
EditText1.TextColor=Colors.Black
EditText1.Hint="enter text here"
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
If Panel1.Left=0 Then
Panel1.Left=Activity.Width
Else
Activity.Finish
End If
Return True
Else
End If
End Sub
Sub Button1_Click
Panel1.Left=0
Panel1.BringToFront
End Sub
Sub Button2_Click
Panel1.Left=Activity.Width
lv1.AddSingleLine(EditText1.Text)
End Sub
Last edited: