Android Question SearchView an doEvents

David Meier

Active Member
Licensed User
Longtime User
Hi
I use searchview but realized that it uses the DoEvents command. And this is now deprecated. Is there an update for the searchview class?

Regards

David
 

DonManfred

Expert
Licensed User
Longtime User
The Class Source is available. You can change it if you want.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Mahares

Expert
Licensed User
Longtime User
I've uploaded a new version without it
1. The only thing I noticed in the new version of SearchView class is the removal of this line from the class. What else is changed?
B4X:
If i Mod100 = 0 Then DoEvents
2. Since there are over 7000 records in the text file, it does not start showing the list until you type the 2nd letter. Example: When you type p, you do not see anything, but the list start appearing when you type the second letter : po, even with a faster processor. . No memory time out. Is that by design or 7000 records indexed is too much?
3. I tried a few months ago to run the original version (the one without the customview in the designer) using this below nice feature:
B4X:
'Don't forget to add the SetActivityAttribute in the manifest editor (already added in this example)
Private Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
    SearchView1.ActivityHeightChanged(NewHeight)
End Sub
But never was successful, unless I used the SearchView created in the designer.
 
Upvote 0

David Meier

Active Member
Licensed User
Longtime User
Upvote 0
Top