Sergey_New Well-Known Member Licensed User Longtime User Oct 21, 2024 #1 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 test.zip 15.5 KB · Views: 371
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.
agraham Expert Licensed User Longtime User Oct 21, 2024 #2 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. IME2 Library I have been having a lot of trouble lately with layouts being corrupted when rotating a device with the soft keyboard open. The problem stems from trying to use the IME library HeightChanged event. Unfortunately Android provides no direct way to determine whether the soft keyboard is shown or... www.b4x.com Upvote 0
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. IME2 Library I have been having a lot of trouble lately with layouts being corrupted when rotating a device with the soft keyboard open. The problem stems from trying to use the IME library HeightChanged event. Unfortunately Android provides no direct way to determine whether the soft keyboard is shown or... www.b4x.com
Sergey_New Well-Known Member Licensed User Longtime User Oct 21, 2024 #3 graham, thanks for the link to the library! I don't use screen rotation. Upvote 0
agraham Expert Licensed User Longtime User Oct 21, 2024 #4 It's not just for dealing with screen rotation. Have you expanded and read the 'From the XML for the IME2 library.' section in the first post for the library to see if there is anything relevant to your problem? Upvote 0
It's not just for dealing with screen rotation. Have you expanded and read the 'From the XML for the IME2 library.' section in the first post for the library to see if there is anything relevant to your problem?
Sergey_New Well-Known Member Licensed User Longtime User Oct 21, 2024 #5 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
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.
Sergey_New Well-Known Member Licensed User Longtime User Oct 23, 2024 #6 I decided it myself. Attachments test.zip test.zip 15.2 KB · Views: 360 Upvote 0 Solution