Android Question EnterPressed and IME_HeightChanged

Sergey_New

Well-Known Member
Licensed User
Longtime User
The application uses a custom class "ClassAddress".
B4X:
Type ClassAddress(addr,city,state,postcode,country,phon,email,fax,www As String)
This class is used in several Activities.
I made a test example with two Activities, which I am attaching.
When receiving the EditText focus, as well as when the EnterPressed event occurs, the results in these Activities are different. I racked my brains, but I did not find a solution.
If you have a chance to see it, please correct my example.
 

Attachments

  • test.zip
    15.5 KB · Views: 20

agraham

Expert
Licensed User
Longtime User
I have found in the past that dealing with the IME under all circumstances can be frustrating as it can behave differently on different devices. You can see if this 'improved' IME2 library helps. The original IME API was, in my opinion, very badly designed although I think in recent Android versions it has been improved. If I was feeling better it would be a candidate for me to research and write a new library but unfortunately I am not in a position to do that at the moment.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
graham, thanks for the link to the library! I don't use screen rotation.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
I read it, but I didn't see how it could affect my example. My application is quite large, and remaking it on IME2 is problematic.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
I decided it myself.
 

Attachments

  • test.zip
    15.2 KB · Views: 13
Upvote 0
Solution
Top