Рет қаралды 37,100
This video describes how to create a dictionary app in Sketchware.
A glitch in the video: The if..else.. used in onCreate makes it such that the words are added only once when the app is installed. If more words are added, they will only show in app if the app is deleted and installed afresh.
In order to overcome this, Don't use the if else Block in onCreate. Add the More Blocks directly in onCreate without using if..else.. block (read the blog whose link is provided below).
A blog on the topic: www.sketchwareh...
To hide the keyboard when a ListView item is selected, put following code in ListView on item selected:
android.view.inputmethod.InputMethodManager imm = (android.view.inputmethod.InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);