[UPDATE V. 3.0 09/15/2025]
' v. 3.0 - Added: Visible property.
' - Added: Enabled property.
' - Fixed: ConfirmWord held the focus.
(zip file: SuggestionEditText_3.zip)
[UPDATE V. 2.2 09/12/2025]
So many unnecessary (old) file attachments! (Deleted; and by mistake I also deleted the animated gif (*)), just download the latest one, SuggestionEditText_2_2.zip
This new version has just one new feature, based on this request.
It's easier to press "Enter" on the virtual keyboard; it already had the same effect.
Added ConfirmWord method.
I needed an EditText like SearchView but without the list shown (without ListView), to use it on a smartphone in landscape mode (you know, in this situation the keyboard takes up almost the available space).
(*) The old one was better.
This view uses a SQLite DB to store the words and to retrieve them typing the first characters.
To be able to delete all the old and unneeded db files, you must call the DeleteAllWordsDBs method once, before doing anything else with the custom view. With this method you also set the DB's directory.
After this, you must initialize the SuggestionsEditText DB calling its method InitWordsDB.
I'll update soon this post with details about methods and properties but they are documented and easy to understand.
Don't forget that this is a TOTALLY FREE library, so... don't be too bad with your comments and too stingy to click on "Like"
View attachment 54144
Members: https://www.b4x.com/android/forum/threads/custom-view-suggestionsedittext.77776/#post-493565
Added V. 1.1
Method: InitWordsDB2(SuggET As SuggestionsEditText)
To use the same DB of another SuggestionsEditText view.
Property: DB
To get the words DB associated.
Added V. 1.3
Method: AddAllAsync (lstWords As List)
Properties: HintText, KBSuggestions
Event: AddAllAsyncComplete
Version 2.0
Previous versions use internally:
https://developer.android.com/refer...method/EditorInfo.html#IME_FLAG_NO_EXTRACT_UI
View attachment 54630
I saw this now only, so v. 2.0 uses:
View attachment 54631
[Note that IME_FLAG_NO_FULLSCREEN needs API 11 and above]
Also, added:
Property: KBFullScreen
' v. 3.0 - Added: Visible property.
' - Added: Enabled property.
' - Fixed: ConfirmWord held the focus.
(zip file: SuggestionEditText_3.zip)
[UPDATE V. 2.2 09/12/2025]
This new version has just one new feature, based on this request.
It's easier to press "Enter" on the virtual keyboard; it already had the same effect.
Added ConfirmWord method.
I needed an EditText like SearchView but without the list shown (without ListView), to use it on a smartphone in landscape mode (you know, in this situation the keyboard takes up almost the available space).
(*) The old one was better.
This view uses a SQLite DB to store the words and to retrieve them typing the first characters.
To be able to delete all the old and unneeded db files, you must call the DeleteAllWordsDBs method once, before doing anything else with the custom view. With this method you also set the DB's directory.
After this, you must initialize the SuggestionsEditText DB calling its method InitWordsDB.
I'll update soon this post with details about methods and properties
Don't forget that this is a TOTALLY FREE library, so... don't be too bad with your comments and too stingy to click on "Like"
View attachment 54144
Members: https://www.b4x.com/android/forum/threads/custom-view-suggestionsedittext.77776/#post-493565
Added V. 1.1
Method: InitWordsDB2(SuggET As SuggestionsEditText)
To use the same DB of another SuggestionsEditText view.
Property: DB
To get the words DB associated.
Added V. 1.3
Method: AddAllAsync (lstWords As List)
Properties: HintText, KBSuggestions
Event: AddAllAsyncComplete
Version 2.0
Previous versions use internally:
https://developer.android.com/refer...method/EditorInfo.html#IME_FLAG_NO_EXTRACT_UI
View attachment 54630
I saw this now only, so v. 2.0 uses:
View attachment 54631
[Note that IME_FLAG_NO_FULLSCREEN needs API 11 and above]
Also, added:
Property: KBFullScreen
Attachments
Last edited: