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).
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"
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
I saw this now only, so v. 2.0 uses:
[Note that IME_FLAG_NO_FULLSCREEN needs API 11 and above]
Also, added:
Property: KBFullScreen
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"
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
I saw this now only, so v. 2.0 uses:
[Note that IME_FLAG_NO_FULLSCREEN needs API 11 and above]
Also, added:
Property: KBFullScreen
Attachments
-
SuggestionsEditText library.zip9.2 KB · Views: 278
-
SuggestionsEditText Test.zip11 KB · Views: 306
-
SuggestionsEditText 1_1 Library.Zip9.5 KB · Views: 275
-
SuggestionsEditText lib 1.3.zip10 KB · Views: 256
-
SuggestionsEditText lib 2.0.zip10.3 KB · Views: 318
-
SuggestionsEditText.bas15.6 KB · Views: 272
Last edited: